openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: How to unenhance entities ?
Date Thu, 18 Mar 2010 02:58:48 GMT

> if (!jpaEm.isDetached(found)) throw new IllegalStateException("entity
should be detached");

How does 
 if (!jpaEm.isDetached(detached)) throw new IllegalStateException("entity
should be detached");

do?

OpenJPA 1.2 will return a detached "copy" of the original argument. 

-----
Pinaki 
-- 
View this message in context: http://n2.nabble.com/How-to-unenhance-entities-tp4749734p4754415.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message