[oops, did not mean to post the code to users]
I have narrowed it down, and I think these changes will address the issue.
commit 6ffdc4d684b33777b1c483473444d25b642e0748 (HEAD -> HHH-13959,
pdinc-oss/HHH-13959)
Author: Jason Pyeron
Date: Mon Apr 20 02:20:21 2020 -0400
HHH-13959 Added opt
[pardon the top post, it did not mix in well]
It looks like [stack trace 1] the option is never set in this situation,
because the only place it is set is when
if ( trueOneToOne || mapToPK ||
!BinderHelper.isEmptyAnnotationValue( mappedBy ) ) {
but since there is a FK involved
https://hibernate.atlassian.net/browse/HHH-13959
I started a DB migration today, now we are dead in the water due to this
exception.
When I persist an Entity on the owning side of the OneToOne(optional=true)
relationship, and that property is null we are getting:
javax.persistence.Per
> -Original Message-
> From: Jason Pyeron
> Sent: Sunday, April 19, 2020 11:20 AM
>
> I think I have found another corner case on the
> https://hibernate.atlassian.net/browse/HHH-9798 regression.
>
>
>
>
>
> @OneToOne(fetch = FetchType.LAZY)
>
> @JoinTable(
>
> name
I think I have found another corner case on the
https://hibernate.atlassian.net/browse/HHH-9798 regression.
The cited example is:
@OneToOne(fetch = FetchType.LAZY)
@JoinTable(
name = "ITEM_SHIPMENT", // Required!
joinColumns =
@JoinColumn(name = "SHIPMEN