Welcome to the Hibernate community newsletter in which we share blog posts, forum, and StackOverflow questions that are especially relevant to our users.
Articles
If you’re using MySQL, then the GenerationType.AUTO
identifier strategy is not the best option.
Check out this article for more details and a very simple workaround.
Injecting a JPA/Hibernate Entity Managers wit CDI and Weld is extremely easy. Check out this article for more details.
Concurrency Control is a very difficult topic, and relational databases are no different. If you wonder how different database systems prevent Phantom reads or you are curious about how Two-phase Locking and MVCC work, you should definitely read this article.
Arno Huetter wrote a list of tips to improve application performance when you’re using JPA and Hibernate.
If you’re working on a database system which does not allow you to create temporary tables, then rest assured. Hibernate 5.2.8 adds support for non-temporary table bulk-id strategies.
If you want to separate the entity validation logic from the entity data structures, Hibernate Validator is a very attractive solution.
Time to upgrade
-
Hibernate Search 5.6.0 and 5.7.0.CR1 are out.
-
Hibernate Validator 5.4.0 has been released.
Questions and answers
-
Which popular web applications, sites, or web services are backed by Hibernate ORM?
-
Hibernate mapping exception - Could not determine type for entity class
-
JPA entity mapping which is related based on two other entity mappings
-
How to define the order of fields on foreign key mapping using Hibernate and JPA?
-
How to handle ObjectOptimisticLockException properly for multiple simultaneous transaction requests?
-
Phantom Read anomaly in Oracle and PostgreSQL does not rollback transaction
-
How to remove soft deleted entities in Hibernate associations?