开发者

JPA native query and cache

Does native query i开发者_StackOverflow中文版n 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


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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜