I have 2 entities with the following
Entity A that contains:
Entity B that contains:
When I try to persist an object A wth b = null, I got the following exception
A workaround is to disable the nullability validator.
Otherwise, I've found the field b of class A is considered as not nullable. This seems to happen in the OneToOneSecondPass class that do not consider the @NotFound annotation. Then the built property has optional = false and this become nullable = false when the entity model is built.
sorry but not able to reproduce this for @manyToOne.
Attaching a modified OP test case which fails on @ManyToOne
Oops, I guess the attachment didn't work as I expected. I guess I may need to open a new Jira ticket after all.
ManyToOne test case attached to the new issue you created.
Do we have any news regarding the final resolution of this ?