|
According to JPA 2.1 specification (page 476) if an entity is removed from the one to one relation (by setting the reference to null) and the relation is marked with orphan removal, the referenced entity should be deleted from the database.
When I created one sided (no reverse reference) one to one relationship between two entities and set the orphan removal attribute to true, the referenced object is still in database after setting reference to null.
If you have any questions/suggestions feel free to ask.
|