Reputation: 3131
Does native query in JPA (createNativeQuery
) supports caching?
I am filling my own data transfer object because the sql query joins several tables and takes only several columns form them.
Regards
Upvotes: 6
Views: 9163
Reputation: 570285
This is possible but you must use an explicit .addScalar
or .addEntity
.
Upvotes: 6