Hibernate Cache and JdbcTemplate
Will the Hibernate caching(1st, 2nd, or Query) work when I use JdbcTemplate?
I got to know that the caching is one of the advantage in using ORM instead of traditional JDBC. So, If I got to use Hibe开发者_运维知识库rnate's JdbcTemplate, still can I enjoy the benefits of hibernate caching?
Since you're bypassing your hibernate altogether, you have to implement/configure those things yourself.
No, if you use JdbcTemplate you will be bypassing the cache entirely and will thus need to invalidate it.
精彩评论