In this article, we are going to see the best way to initialize LAZY proxies and collections when using JPA and Hibernate.
I decided to write this article because there are way too many resources available on the Internet that mislead the reader into using awkward and inefficient practices.
Continue reading “The best way to initialize LAZY entity and collection proxies with JPA and Hibernate”
In this article, you are going to learn why overwriting entity collections is an anti-pattern and how you can merge collections both effectively and efficiently with JPA and Hibernate.
The reason I decided to write this article is that I’ve been this question asked over and over and over again.
Continue reading “How to merge entity collections with JPA and Hibernate”
hibernate-types project allows you to map Java objects or Jackson
JsonNode as JPA or Hibernate entity properties, and, thanks to our awesome contributors, we have added support for storing type-safe JSON collections.
In this article, you are going to see how to achieve this goal.
Continue reading “How to map JSON collections using JPA and Hibernate”