Affects 6.2.0.CR1 and 5.6 for sure. Essentially, calling entity.setProperty( entity.getProperty() ) triggers an SQL Update, even though that update has no point. Downstream bug report (Quarkus): https://github.com/quarkusio/quarkus/issues/30234 This seems related to https://hibernate.atlassian.net/browse/HHH-15634 ( https://github.com/hibernate/hibernate-orm/pull/5461 ), especially because the problem started to appear in the version of Quarkus that upgraded to the version of Hibernate ORM that fixes https://hibernate.atlassian.net/browse/HHH-15634. Interestingly, while https://hibernate.atlassian.net/browse/HHH-15634 was only about lazy basic properties, here the unnecessary updates affect eager properties as well, and even on entities that have only eager properties. So, this probably affects a lot of applications. I will provide a reproducer soon. |