Fixed
Details
Assignee
Marco BelladelliMarco BelladelliReporter
Yoann RodièreYoann RodièreComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Marco Belladelli
Marco BelladelliReporter
Yoann Rodière
Yoann RodièreComponents
Fix versions
Affects versions
Priority
Created April 12, 2023 at 9:47 AM
Updated April 14, 2023 at 8:21 AM
Resolved April 14, 2023 at 6:53 AM
Hibernate ORM’s bytecode-enhanced inline dirty tracking will ignore changes to
Item.other
in the following model. The problem seems related to generics since removing generics will fix it.@Entity public static class Other { @Id @GeneratedValue private Long id; public Long getId() { return id; } public void setId(Long id) { this.id = id; } } @MappedSuperclass public static abstract class Item<T> { @ManyToOne( fetch = FetchType.LAZY ) private T other; public T getOther() { return other; } public void setOther(T other) { this.other = other; } } @Entity public static class ChildItem extends Item<Other> { @Id @GeneratedValue private Long id; public Long getId() { return id; } public void setId(Long id) { this.id = id; } }