[hibernate-issues] [JIRA] (HHH-13866) OneToOne-association produces error on 5.4.0+ when using PostgreSQL

Peter Fuerholz (JIRA) jira at hibernate.atlassian.net
Sat May 9 17:21:06 EDT 2020


Peter Fuerholz ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e468beb052b790c97501f3d ) *commented* on HHH-13866 ( https://hibernate.atlassian.net/browse/HHH-13866?atlOrigin=eyJpIjoiYTkwM2UwNGFmMTQ4NDBkNjhiY2ExNGNlMDEwZGJlOWYiLCJwIjoiaiJ9 )

Re: OneToOne-association produces error on 5.4.0+ when using PostgreSQL ( https://hibernate.atlassian.net/browse/HHH-13866?atlOrigin=eyJpIjoiYTkwM2UwNGFmMTQ4NDBkNjhiY2ExNGNlMDEwZGJlOWYiLCJwIjoiaiJ9 )

Thanks for trying to help me. I do save PaymentDO before PaymentBatchJob. (see my comment above “What I want to do is saving a PaymentDO and then add a PaymentBatchJobDO to it (using Spring's JpaRepository). Strangely when trying to save the PaymentBatchJobDO this fails.“)
The code worked with hibernate-core 5.3.* but no longer with hibernate-core 5.4.*.
As you can see Spring is calling EntityManager.merge which leads to this issue. As a workaround I managed now that in that case EntityManager.save gets called.

( https://hibernate.atlassian.net/browse/HHH-13866#add-comment?atlOrigin=eyJpIjoiYTkwM2UwNGFmMTQ4NDBkNjhiY2ExNGNlMDEwZGJlOWYiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13866#add-comment?atlOrigin=eyJpIjoiYTkwM2UwNGFmMTQ4NDBkNjhiY2ExNGNlMDEwZGJlOWYiLCJwIjoiaiJ9 )

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#100126- sha1:9bc00fe )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200509/06d49e49/attachment.html 


More information about the hibernate-issues mailing list