|
Starting in 4.2.7, the following association mapping results in an error on flushing (regardless of whether there was a change to the collection).
<class name="User" table="`User`">
<id name="name" length="32" />
<map name="groups" table="UserGroup" cascade="all,delete-orphan" >
<key column="name" />
<map-key column="groupType" type="integer" />
<many-to-many class="Group" unique="true" >
<column name="groupName"/>
</many-to-many>
</map>
</class>
Stacktrace:
I've attached a test case (org.hibernate.test.manytomany.mapunique.ManyToManyUniqueDelOrphanTest). The test case succeeds under 4.2.6, but fails under 4.2.7 (and master).
I believe this regression was caused by the fix for HHH-6484.
|