I've found a solution to my problem... tblScmpdt.setTblPdtcde(null); //immutable, don't merge The foreign key is still set (tblScmpdt.pdtcdeId), so by setting the related entity to null, it prevents OpenJPA from trying to merge it. -- View this message in context: http://n2.nabble.com/How-to-prevent-OpenJPA-from-updating-immutable-entities--tp721855p721956.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
- How to prevent OpenJPA from updating immutable entities? egoosen
- Re: How to prevent OpenJPA from updating immutable en... egoosen
- Re: How to prevent OpenJPA from updating immutabl... Timothy Fanelli
