Jay Ahn (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=61a6681...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYzcwZWFjNDU0...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16700?atlOrigin=eyJpIjoiYzcwZW...
) HHH-16700 (
https://hibernate.atlassian.net/browse/HHH-16700?atlOrigin=eyJpIjoiYzcwZW...
) mappedBy to id, not to Entity (
https://hibernate.atlassian.net/browse/HHH-16700?atlOrigin=eyJpIjoiYzcwZW...
)
Change By: Jay Ahn (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=61a6681...
)
Currently I have the below mapping that was working very well in hibernate 5, but now I
got an error by the type check introduced by this
ticket.([https://hibernate.atlassian.net/browse/HHH-16313|https://hiberna...
)
The reason why I map like this is that
* I can leverage the efficiency of bidirectional mapping
* I don’t need to reference from child to parent.
(semi-bidirectional)
This pattern probably works when primary key is generated in server side(like UUID), not
DB generated unique id as it is determined before I persist them.
Is it possible to use the below pattern in hibernate 6? or there is any workaround at this
moment?
{code:java} @Entity
public static class EntityA {
@Id
private UUID id;
@OneToMany( mappedBy = "entityAId" )
private List<EntityB> twos;
}
@Entity
public static class EntityB {
@Id
private Long id;
private UUID entityAId;
}{code}
(
https://hibernate.atlassian.net/browse/HHH-16700#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16700#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#100225- sha1:85acc52 )