This bug is definitively open. PerstistenBag still refers to super.equals() and super.hashCode(). Comment in PersistentBag.equals() indicates: "Bag does not respect the collection API and do an JVM instance comparison to do the equals. The semantic is broken not to have to initialize a collection for a simple equals() operation."
So this bug was introduced to increase performance. Not a good choice.
See https://forum.hibernate.org/viewtopic.php?f=9&t=971056
|