Welcome to the Hibernate community newsletter in which we share blog posts, forum, and StackOverflow questions that are especially relevant to our users.
Articles
Starting with JPA and Hibernate is fairly easy. However, getting the best out of the underlying database system, JDBC driver or JPA implementation is what many developers find challenging. These Hibernate performance tuning tips are going to help you speed uo your data access layer, as well as getting a better understanding of how Hibernate works behind the scenes.
Eugen Paraschiv wrote a very good article which teaches you how to improve the performance of a Java application.
Marko Bekhta wrote an article about validating multiple properties with Bean Validation.
When using JPA and Hibernate, it’s not uncommon to want to clone or duplicate a given entity. This article shows you how to use the copy constructor to clone an entity so that you control the associations being cloned.
If you want to know how to leverage the full-text search capabilities of SAP HANA using Hibernate, check out this article written by Jonathan Bregler.
This article shows you three ways you can implement an audit log when using JPA and Hibernate:
-
custom JPA callbacks,
-
Hibernate Envers or
-
Spring Data Audit capabilities
In this article, you will see how to map an entity query to a custom DTO class using the JPA constructor result or the Hibernate-specific ResultTransformer
.
Time to upgrade
Hibernate Search has released three versions (5.10.4, 5.9.3, 5.6.6). If you’re using Hibernate Search, you might want to upgrade to the latest version of your branch and benefit from all the enhancements being added to the project.
JHipster 5.3.0 has been released, and it now supports the hibernate.connection.provider_disables_autocommit
Hibernate configuration property.
Questions and answers
-
How to select multiple many-to-many associations efficiently using JPQL
-
How to run a Hibernate NativeQuery in a type-safe manner instead of returning an
Object[
] -
What is the difference between Non-Repeatable Read and Phantom Read?
-
Hibernate saves/retrieves date minus day if the application uses another timezone than MySQL
-
Hibernate add relationship between two unrelated entities (not related by foreign key)
-
Oracle: HT_ tables are created for inheritance type table-per-class