Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Order of mapping initialization error in EclipseLink 2.3?

I am not aware of an existing problem. Can you provide us with more information? (ideally an recreation, but otherwise a description of your class structure, the mappings and the code you are running)

Zeb Ford-Reitz wrote:
Hello,

I'm encountering a problem with EclipseLink 2.3 RC1 that I did not encounter in EclipseLink 2.2.

The problem involves multiple levels of inheritance and "preDeleteMappings". The resulting error is a foreign key violation in a join table when committing the removal an entity with a ManyToMany association.

The source of the problem seems to be missing preDeleteMappings, which would remove the necessary entry from the join table before removing the entity itself. Essentially, the order in which the mappings are initialized (and post-initialized) causes several of our entites to contain the preDeleteMappings from their corresponding direct parents, but *not* from all of their ancestors.

Is this a known issue? If so, is it expected to be fixed in the near future? If not, can anyone suggest a workaround?

Thanks for your time.

With best regards,
Zeb Ford-Reitz


------------------------------------------------------------------------

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top