Key annotations you need to know when working with JPA and Hibernate

Key annotations you need to know when working with JPA and Hibernate

When you start learning and using Hibernate and JPA, the number of annotations might be overwhelming. But as long as you rely on the defaults, you can implement your persistence layer using only a small subset of them. After you have mastered the basic annotations, you can take a look at additional customization options. You…

Hibernate Tip: How to control cache invalidation for native queries

Hibernate Tip: How to control cache invalidation for native queries

Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question for a future Hibernate Tip, please post a comment below. Question: “I was told that native queries remove all entities from my 2nd level cache. But you’re still recommending them….