Welcome to the Hibernate community newsletter in which we share blog posts, forum, and StackOverflow questions that are especially relevant to our users.
Videos
If you are using Spring Boot, you should definitely check out this video from Josh Long where he shares several tips about JPA, Spring, and Hibernate.
Articles
When using Hibernate, the impact of JPQL query parsing might be overlooked. However, as explained in this article, it is very important to make sure that the Query Cache Plan can handle the vast majority of JPQL and Criteria API queries.
If you are planning on using Spring Boot with Hibernate ORM and Hibernate Search, then you should definitely read this tutorial.
For our Chinese readers, this article shows some interesting problems that Lombok can cause when using JPA and Hibernate.
When using a relational database, most applications rely on the default isolation level, which, most often, is either Read Committed (e.g. Oracle, PostgreSQL, SQL Server) or Repeatable Read (e.g. MySQL, MariaDB). However, none of these default isolation levels can prevent the Phantom Read anomaly. For more details about this phenomenon and how you can prevent it, check out this article.
In
this article,
Paul Klingelhuber explains how entity attributes annotated with @Convert
are handled by the Hibernate dirty checking mechanism.
Questions and answers
-
What’s the difference between` @JoinColumn` and
mappedBy
when using a@OneToMany
association -
How to solve the “failed to lazily initialize a collection of role” Hibernate exception
-
What is the order of properties when calling getDirtyProperties from
PostUpdateEvent
-
Why is the JPA FetchType
EAGER
by default for the@ManyToOne
relationship?