Hibernate Tips Ebook
Get the Hibernate Tips ebook with more than 70 ready-to-use recipes for topics like:
Hibernate Tips Posts
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….
Hibernate Tip: How to customize the association mappings using a composite key
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: “One of my entities uses an @IdentityClass to map a composite primary key, and I need to map a…
Hibernate Tip: How to integrate an external query builder
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 don’t like JPQL. It abstracts from the underlying table model, and it’s too limited for my use case….
Hibernate Tip: Best Way To Work with Scalar Projections
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: On my latest article, Steve Ebersole reminded me of the Tuple interface. And to be honest, I don’t know…
Hibernate Tip: Difference between @JoinColumn and @PrimaryKeyJoinColumn
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: Himanshu Srivastava asked today’s question on my YouTube channel: “What’s the difference between@JoinColumn and @PrimaryKeyJoinColumn? Also, should we use…
Hibernate Tip: Create an EntityGraph with multiple SubGraphs
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: On my tutorial about JPA’s EntityGraphs, Bipin Shrestha asked the following question: “Can you show me an example of…