Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15553 (
https://hibernate.atlassian.net/browse/HHH-15553?atlOrigin=eyJpIjoiOTMyMD...
)
Re: Not possible to fetch content from mapping tables, that only have <composite-id>
attributes. (
https://hibernate.atlassian.net/browse/HHH-15553?atlOrigin=eyJpIjoiOTMyMD...
)
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;
}
}
(
https://hibernate.atlassian.net/browse/HHH-15553#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15553#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100209- sha1:392b984 )