JPA native query and cache
Does native query i开发者_StackOverflow中文版n JPA (createNativeQuery
) supports caching?
Regards
This is possible but you must use an explicit .addScalar
or .addEntity
.
See also
- Caching SQL query problem
- Hibernate: Truly Understanding the Second-Level and Query Caches
精彩评论