Conversation
Notices
-
So I have here a relative complex #Entities structure: User -> Contact and Contact -> CellphoneNumber, LandLineNumber, FaxNumber this means that Contact is referencing 3 other entities. If I run #persist on User, all went fine with #EclipseLink, but If I run a #merge() on User, the 3 last entities got persisted (inserted instead of updated) again and in Contact the constrains are being updated to the new ones. So I have some orphaned entries to remove (which causes another SQL). cc !java ...
-
This doesn't look like high performance to me, if the #JPA has to insert + update + delete (at least, plus necessary select statements). Any ideas how do I have to write it? Don't worry, it will be later #GPLv3 :-)