jpa - Migration issue - Kodo/OpenJPA to EclipseLink -
i have environment setup java ee (weblogic 10.0). thus, kodo/openjpa used jpa implementation. reasons want migrate eclipselink. have following issue:
- entity -- manytomany -- entity b
- fetchtype.lazy, cascade{}
- jointable axb
- foreignkey constraint axb.fk_col -> a.pk
if want remove entity a, entry in join column should deleted
kodo/openjpa -> deletion successful, sql trace shows, first axb rows deleted
eclipselink -> deletion fails, foreign key constraint violation. el tries delete entity first.
this in 1 transaction (resource_local). thought was, if within transaction, foreign key constraints may violated? can order of deletions changed in way first join table rows deleted?
i use eclipselink 1.1.4
thanks help, soccertrash
this issue fixed in later versions of eclipselink. try 2.0, or latest 2.3.
otherwise remove target object collection first , call flush.
Comments
Post a Comment