Markus Heiden (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMGQ5NmM2NGUw...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15713?atlOrigin=eyJpIjoiMGQ5Nm...
) HHH-15713 (
https://hibernate.atlassian.net/browse/HHH-15713?atlOrigin=eyJpIjoiMGQ5Nm...
) UnknownTableReferenceException on @ElementCollection of @Embeddable containing a
@MayToOne with a @ManyToMany (
https://hibernate.atlassian.net/browse/HHH-15713?atlOrigin=eyJpIjoiMGQ5Nm...
)
Change By: Markus Heiden (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
When “Hibernate.initialize (plan) ” I get a “UnknownTableReferenceException: Unable to
determine TableReference (`SubPlan`) for `Plan.transfers.events`”.
Hibernate seems to overlook the intermediate entity “SubPlan“ in the embeddable here. The
path above should be `Plan.transfers.subPlan.events`.
Reduced code:
{noformat}@Entity
public class Plan {
@ElementCollection
@CollectionTable(name = "TRANSFER", joinColumns = @JoinColumn(name =
"PLAN_ID"))
private List<Transfer> transfers;
}
@Embeddable
public class Transfer {
@ManyToOne
private SubPlan subPlan;
}
@Entity
public class SubPlan {
@ManyToMany
private List<Event> events;
}
@Entity
public class Event {}{noformat}
(
https://hibernate.atlassian.net/browse/HHH-15713#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15713#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#100210- sha1:583150f )