Fail to delete entity with a composite id using an @IdClass with one of its fields mapped from the id of a @ManyToOne association

Description

Description

I'm migrating from hibernate 5.6.15 to hibernate 6.2.5 and I have noticed some issues when I try to delete an entity that have a compositeId with one of its id field part of a @ManyToOne association.

Entities

 

Test

I get the following exception :

 

GitHub repository with sources :

Attachments

2

Activity

Show:

Erwan Moutymbo July 17, 2023 at 9:47 AM

Ah my bad, I have asked because I only saw 1 pull request linked to the issue instead of the usual two (main and 6.2).

Andrea Boriero July 17, 2023 at 9:42 AM

Hi

it has been merged on 6.2 branch.

Erwan Moutymbo July 17, 2023 at 9:09 AM

Hello Andrea Boriero,
thanks for the fix ! is it possible to merge it on the 6.2 branch ?

Fixed

Details

Assignee

Reporter

Worked in

Components

Sprint

Fix versions

Priority

Created June 16, 2023 at 4:10 PM
Updated July 20, 2023 at 6:48 PM
Resolved July 14, 2023 at 9:46 AM