This content has been marked as final.
Show 1 reply
-
1. Re: How-to remove entity with @OneToOne relationship
schnulla Dec 1, 2009 2:08 PM (in response to schnulla)Ok I guess my problem is solved. The reason was that
the entity ids in the database tables were messed up
because of previous delete operations.So although I persisted both entities with a @OneToOne
shared primary key relationship they received different
id numbers thus preventing the cascaded remove to work
properly.So I dropped both tables and started two new fresh tables
for both entities and now the cascaded remove works
because they receive the same ids.