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.

Reply via email to