There is no “single PR” that fixes this particular issue. Like I tried to point out, this was fixed as part of the major type system re-design in Hibernate 6, so this is not something that can be “backported”. I would have to be implemented for Hibernate 5.6. Having said that, I’d like to point out, that this should work also in 5.6 if you are using the annotation model:
@Entity
public class CompIdVOImpl implements CompIdVO, Serializable {
@Id
@Column(length = 32)
private String id1;
@Id
@Column(length = 32)
private String id2;
public CompIdVOImpl() {
}
public CompIdVOImpl(String id1, String id2) {
this.id1 = id1;
this.id2 = id2;
}
@Override
public String getId1() {
return id1;
}
@Override
public void setId1(String id1) {
this.id1 = id1;
}
@Override
public String getId2() {
return id2;
}
@Override
public void setId2(String id2) {
this.id2 = id2;
}
}
|