Joined Inheritence with Generated wrongly resolves columns for base entity

Description

If one has a base Entity Parent with the inheritance strategy @Inheritance(strategy = InheritanceType.JOINED) and a Child

public class Child extends Parent {} @Generated(event = EventType.INSERT) @Column(unique = true, insertable = false, updatable = false, columnDefinition = "INT(10)") private Long someGenerated; ... }

When now persisting a Child, hibernate 6.5.0+ will try to save the someGenerated column within the Parent table, which will fail, since that column is not part of the Parent entity.

Activity

Show:

KontextWork June 14, 2024 at 8:39 AM

Thank you!

Fixed

Details

Assignee

Reporter

Labels

Worked in

Sprint

Fix versions

Affects versions

Priority

Created June 11, 2024 at 6:40 PM
Updated August 13, 2024 at 9:42 AM
Resolved June 14, 2024 at 8:22 AM