The problem here is that Hibernate is not creating a unique key on the foreign key column, PhoneDetails.phone_id. If the unique key had been defined, then there would have been a constraint violation when an attempt was made to persist the second PhoneDetails with the same Phone object. |