Attempted to assign id from null one-to-one property with hibernate 5.4.30.Final

Description

getting same exception like below JIRA ticket. M using hibernate-core version 5.4.30.Final.
My code practice is same as in the bug JIRA

#https://hibernate.atlassian.net/browse/HHH-12436

Environment

None

Assignee

Unassigned

Reporter

Avinash Tiwari