[hibernate-issues] [JIRA] (HHH-14129) Bidirectional relationship fails to save after upgrading to 5.4.17
Andrea Boriero (JIRA)
jira at hibernate.atlassian.net
Mon Aug 3 04:43:38 EDT 2020
Andrea Boriero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A8ce9ebec-e8f7-4cb9-b414-ea2ae49591e3 ) *commented* on HHH-14129 ( https://hibernate.atlassian.net/browse/HHH-14129?atlOrigin=eyJpIjoiMTE0ZDlmODFiZTRmNGNmNmJmOWNjYmExODkzN2MwMmIiLCJwIjoiaiJ9 )
Re: Bidirectional relationship fails to save after upgrading to 5.4.17 ( https://hibernate.atlassian.net/browse/HHH-14129?atlOrigin=eyJpIjoiMTE0ZDlmODFiZTRmNGNmNmJmOWNjYmExODkzN2MwMmIiLCJwIjoiaiJ9 )
Hi Eduardo Simioni ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A7476e83f-4b39-4d4a-af62-fe1c3e454b13 ) as a temporary workaround you can add optional=false to the @ManyToOne
public class Child{
...
@NotNull
@ManyToOne(optional = false )
private Parent parent;
}
( https://hibernate.atlassian.net/browse/HHH-14129#add-comment?atlOrigin=eyJpIjoiMTE0ZDlmODFiZTRmNGNmNmJmOWNjYmExODkzN2MwMmIiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14129#add-comment?atlOrigin=eyJpIjoiMTE0ZDlmODFiZTRmNGNmNmJmOWNjYmExODkzN2MwMmIiLCJwIjoiaiJ9 )
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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100141- sha1:e1d49c9 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200803/435aa90f/attachment.html
More information about the hibernate-issues
mailing list