Welcome to the Hibernate community newsletter in which we share blog posts, forum, and StackOverflow questions that are especially relevant to our users.
Looking for your feedback
We are looking for your feedback in about Hibernate bootstrap in cloud environments. Check out this article for more details. If you have any idea or proposal, don’t hesitate to use the comments section below the aforementioned article.
Articles
Sometimes, it’s easy to miss the basic concepts, and relational databases are no different. Check out this article about how does a relational database work.
Check out how you can build Multi-Release JARs with Maven and Java 9. This is an awesome tip!
We released dedicated Dialects for MariaDB, so you don’t have to use the MySQL-specific Dialects when working with MariaDB.
Integration testing is of paramount importance when building an enterprise application. However, many projects rely on in-memory databases (e.g. H2, HSQLDB) for testing, while in production they use Oracle, SQL Server, PostgreSQL or MySQL. In this article, you’ll find how you can run integration tests faster using tmpfs and Docker.
If you’re using JCache through Spring, Hibernate, and Ehcache, this article explains how you can prevent spontaneous cache creation.
Concurrency Control is a very tricky subject. Check out this article about how explicit pessimistic locking interacts with INSERT, UPDATE, and DELETE statements.
Emmanouil Gkatziouras wrote two articles about Hibernate and Hazelcast as a 2nd-level caching provider:
Russ Thomas wrote https://sqljudo.wordpress.com/2014/12/29/what-every-dba-and-swe-should-know-about-ef/[a comprehensive list of ORM Anti-Patterns. Although the article was written for Entity Framework, the tups apply to JPA or Hibernate.
For our Portuguese readers, Rhuan Henrique Rocha da Silva wrote an article about the meaning of mappedBy
in JPA and Hibernate.
Thorben Janssen wrote an article about adding Full-Test Search capabilities to a Hibernate application.
Paul Klingelhuber wrote an article about how the Dirty Checking mechanism interacts with JPA AttributeConverters.
I also wrote an article how to map the latest child of a parent entity using Hibernate @JoinFormula
.
Time to upgrade
-
Hibernate ORM 5.2.8 has been released.
-
Initial Bean Validation 2.0 via Hibernate Validator 6.0.0.Alpha1.
-
Hibernate OGM 5.1 CR 1 is out.
Questions and answers
-
What is the purpose of the
mappedBy
element in a@OneToMany
annotation in Hibernate? -
How should equals and hashcode be implemented when using JPA and Hibernate?
-
Hibernate stored procedure call hangs when called multiple times
-
How to print a query string with parameter values when using Hibernate?
-
How to map a database view without a primary key when using JPA?
-
Hibernate enableFilter not working when loading entity by id?
-
Why does Hibernate 5 sequence generator use the default hibernate.seq instead of my sequence?
-
What is the difference between a Session and a Connection in Hibernate?
-
Does Hibernate automatically restart transactions upon deadlocking?
-
HQL error: with-clause referenced two different from-clause elements
-
How to avoid java.util.ConcurrentModificationException in entity merging in JPA and Hibernate?
-
Creation timestamp and last update timestamp with Hibernate and MySQL
-
Why does MySQL explicit predicate locking disallow inserts outside of the predicate lock?
-
Calling setParameter for where clause leads to NullPointerException