Welcome to the Hibernate community newsletter in which we share blog posts, forum, and StackOverflow questions that are especially relevant to our users.
Interviews
Don’t miss our Hibernate developer interviews with Anghel Leonard.
If you want to share your story about Hibernate, let us know, and we can share it with our huge community of passionate developers.
Articles
Brandur has written a very detailed explanation about the implementation of MVCC (Multi-Version Concurrency Control) in PostgreSQL. For a beginner’s overview of what MVCC is and how it works, check out this article as well.
Hibernate Envers is probably the easiest way to set up an audit log if you are already using JPA and Hibernate. Check out this article to see the best audit strategy to use when choosing Envers as your audit log implementation.
Running out of database sequence values is a very serious issue. This article explains how this had happened on a production system, and offers both a quick fix and a solution for this problem.
Not only that it provides a solid implementation of the JPA specification, but Hibernate can be used for all sorts of tasks like for getting access to the binding between JPA entities and the underlying DB objects (e.g. table, column). Check out this article for more details on this topic.
This article explains how to persist a List
of String
objects as an @ElementCollection
.
Although simple, @ElementCollection
, like any unidirectional association, is
not very efficient.
A bidirectional @OneToMany
association
where the String
element becomes part of the Child entity
is a much more efficient alternative.
Time to upgrade
-
Hibernate ORM 5.1.10 is out with many improvements and bug fixes.
-
There have been two releases for Hibernate Search: one for 5.8.0 CR1 and another one for 5.5.8, 5.6.3, and 5.7.2.
-
Hibernate Validator has released the 6.0.2 version.
Questions and answers
-
Hibernate L2C with Infinispan and JBoss EAP 7.0.6 is not working
-
How should SessionFactory instances be handled within (Spring MVC) web requests?
-
Hibernate @ManyToOne Relationship without Primary Key or Join Table
-
org.hibernate.LazyInitializationException - could not initialize proxy - no Session
-
What is the Java annotation in Hibernate used to auto increment a MySQL Primary Key - @Id
-
JPA Entity with a many-to-many association with extra column
-
Hibernate native SQL returns a String instead of an Object[]