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:

  1. entity -- manytomany -- entity b
  2. fetchtype.lazy, cascade{}
  3. jointable axb
  4. 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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -