Error flushing with a many-to-many Map defined with unique="true" and cascading orphan delete

Description

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).

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.

Environment

None

Activity

Show:
Brett Meyer
November 27, 2013, 11:07 PM

Thanks much for the well done test case

Darren Alec
November 28, 2013, 2:56 AM

Wow, that was quick—thanks! I'm off work till Monday, so I'll test my application with a snapshot build at that time.

Cheers,

  • Darren

Darren Alec
December 2, 2013, 4:11 PM

Hi Bret,

I tested my application with the latest 4.8 snapshot, and your fix worked--I no longer get the error. Thanks for the fast turn-around!

– Darren

Brett Meyer
December 2, 2013, 4:13 PM

No problemo – thanks for the confirmation

Darren Alec
December 2, 2013, 4:13 PM

(I meant 4.2.8 snapshot, BTW)

Assignee

Brett Meyer

Reporter

Darren Alec

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure