Hibernate updates objects incorrectly on the following condition: - hibernate.create_empty_composites.enabled = true (ref: http://in.relation.to/2016/02/10/hibernate - orm-510-final-release/#embeddables-and-all-null-column-values) - the entity has @SelectBeforeUpdate and @Embedded property - a object is retrieved with empty embedded property - the object is detached and then session.update(obj) is called without any change
This bug has a serious consequence of updating audit information incorrectly (with or without envers.) |
|