Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Re: How to prevent OpenJPA from updating immutable entities?

Enrico Goosen

2008-08-13

Replies: Find Java Web Hosting

Author LoginPost Reply

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.
--
Sent from the OpenJPA Users mailing list archive at Nabble.com.

©2008 gg3721.com - Jax Systems, LLC, U.S.A.