Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15530 (
https://hibernate.atlassian.net/browse/HHH-15530?atlOrigin=eyJpIjoiODljM2...
)
Re: Lazy loading is not working when @NotFound IGNORE is used (
https://hibernate.atlassian.net/browse/HHH-15530?atlOrigin=eyJpIjoiODljM2...
)
Do we have options other than deleting the rows that reference
non-existing foreign records and add a foreign key constraint to the table
so that we can remove the @NotFound annotation?
You don’t have to delete the rows. You can simply set the FK column to null. There even is
the option for a foreign key to configure on delete set null in case you don’t want to do
that in your app, see e.g. the PostgreSQL documentation
https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAI... (
https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAI... )
(
https://hibernate.atlassian.net/browse/HHH-15530#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15530#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#100207- sha1:a65942b )