Native query and JPA cache

Does the inline query in JPA ( createNativeQuery ) createNativeQuery caching?
I populate my own data transfer object because the sql query joins several tables and displays only a few columns.

Hi

+6
java hibernate jpa native
source share
1 answer

It is possible, but you should use explicit .addScalar or .addEntity .

see also

+5
source share

All Articles