Hibernate updates objects incorrectly on the following condition:
- hibernate.create_empty_composites.enabled = true
- 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.) |