Hi,
We are migrating Java application from 8 to 17. One of the steps was to migrate hibernate.core from version 5.3.3.Final to 5.6.15.Final. After that we got the following error :
Exception javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value.
In fact, we try to write the record with has a null property and this property is marked as not-null=“true” in hbm.xml file. So it seems like everything is correct. The problem is that this error did not appear in logs before with Java 8 and hibernate 5.3.3 and we can even see that in the database there is a record with this property being null.
Was there any change between those hibernate versions or JRE versions which can affect the behavior of constraint validations set up in hbm.xml files?