Hibernate one-to-one persistence with existing child object
posted 3 years ago
if I have entity parent containing a foreign key to entity child (with Eager fetching).
If say I fetch an existing child from the database, and set it as the child of a parent instance.
When I save the parent, will hibernate try to override the existing child or instead try to find existing one and create the foreign key link?