openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Esteve Boix <>
Subject Update & OneToMany
Date Fri, 10 Aug 2007 13:58:23 GMT

Hi all,

I'm observing the following behaviour, and I'd like to know if it's
normal or if it's a config problem:

I have an Entity1 with a @OneToMany relation to Entity2, using a table
to link both entities. Everytime I update Entity1, OpenJPA deletes all
the links from the link table and recreates all the entities Entity2.
This is weird cause I end up with a lot of orphaned Entity2 objects
(OpenJPA clears the links, but not the original entities).


View raw message