Welcome to the Hibernate community newsletter in which we share blog posts, forum, and StackOverflow questions that are especially relevant to our users.
The Okta developer blog published an article about using Hibernate with Spring Boot while also securing the application with OAuth 2.0.
Hibernate allows you to map the natural business key via the
This article explains how to
expose the Hibernate-specific natural identifier API via the Spring Data
If you need to map a given entity property to a JSON column, you can use the
hibernate-types project as it provides support for both
String and binary JSON column types. For more details about mapping a
String property to a JSON column, check out
If you’re using Hibernate with Spring Boot, this article explains various optimizations you can make to speed up application performance.
For our Korean readers, this article provides a list of resources you can use to learn more about Hibernate Performance Tuning.
When using JPA and Hibernate, you can call a database stored procedure using either
StoredProcedureQuery or the Hibernate-specific
explains how the underlying
CallableStatement is handled by Hibernate and the best way to close the
associated JDBC resources as soon as possible.
The Lombok frameworks can generate the
toString methods on your behalf.
However, for JPA entities, there are several considerations to keep in mind, and
explains you the best way to generate
hashCode with Lombok when using JPA and Hibernate.
To declare the transaction boundaries declaratively, you can use the
This article explains how the
works in Spring and how to get the best out of it.
Questions and answers
Hibernate @OneToMany association with Lazy Loading and Cascade.ALL is fetched eagerly
Hibernate @ManyToMany with FetchMode.JOIN and FetchType.EAGER generates secondary queries
How to fix “org.hibernate.QueryException: query specified join fetching, but the owner of the fetched association was not present in the select list”
Why does the JPA @ManyToMany association remove all entries and reinserts the remaining ones back upon modifications
Polymorphic associations with Hibernate and Relational Database
Hibernate Envers ValidityAuditStrategy throws a “Cannot update previous revision for entity” exception
Hibernate creating N+1 queries for @ManyToOne JPA annotated property
The JPA createStoredProcedureQuery throws “ORA-01000: maximum open cursors exceeded” when using Hibernate
Hibernate performs N+1 selects instead of 1 query when using the Query Cache