Samuel Klein (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15990 (
https://hibernate.atlassian.net/browse/HHH-15990?atlOrigin=eyJpIjoiYjg2Mj...
)
Re: unable to determine TableReference when associate ManyToOne fetch lazy and NotFound
IGNORE: issue using Projection (
https://hibernate.atlassian.net/browse/HHH-15990?atlOrigin=eyJpIjoiYjg2Mj...
)
I was testing and just add anotation @jakarta.persistence.JoinColumn.
Example:
@ManyToOne
@NotFound(action = NotFoundAction.IGNORE)
@JoinColumn(name = "person_id" , referencedColumnName = "id" )
private Person person;
Log:
2023-02-12T10:45:59.415-03:00 INFO 31882 --- [nio-8080-exec-2]
o.s.web.servlet.DispatcherServlet : Completed initialization in 2 ms
Hibernate:
select
a1_0.id,
a1_0.city,
a1_0.person_id,
p1_0.id,
p1_0.first_name,
p1_0.last_name,
a1_0.state,
a1_0.street,
a1_0.zip_code
from
address a1_0
left join
person p1_0
on p1_0.id=a1_0.person_id
where
a1_0.city=?
(
https://hibernate.atlassian.net/browse/HHH-15990#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15990#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#100215- sha1:42926eb )