Sai Surekha (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e99396...
) *commented* on HHH-12645 (
https://hibernate.atlassian.net/browse/HHH-12645?atlOrigin=eyJpIjoiODM1OG...
)
Re: HQL left join fetch not working in inheritance scenario: org.hibernate.QueryException:
could not resolve property (
https://hibernate.atlassian.net/browse/HHH-12645?atlOrigin=eyJpIjoiODM1OG...
)
Hi All,
I am upgrading hibernate from 5.1.17 to 5.4.11. I am also facing same issue and scenario
is also same. I can not go for rename because it effects lot of files.
@Entity
public class BaseEntity
{ @Id private long id; }
Child1:
@Entity
public class EntityA extends BaseEntity
{ @OneToMany(mappedBy = "entityA") private Set<EntityC> attributes; }
Child2:
@Entity
public class EntityB extends BaseEntity
{ @OneToMany(mappedBy = "entityB") private Set<EntityC> attributes; }
@Entity
public class EntityC
{ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "entityA_id") @NaturalId
private EntityA entityA; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name =
"entityB_id") @NaturalId @XmlTransient @JsonProperty private EntityB entityB; }
Can some one suggest solution for this?
(
https://hibernate.atlassian.net/browse/HHH-12645#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-12645#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#100124- sha1:93e2dd3 )