sriram- To use OpenJPA you will need to do either build time or runtime enhancement. The DynamicEnhancement that you disabled is something that OpenJPA added to try to automagically hook up the enhancer, but it isn't perfect by any means. I'd suggest reading through the OpenJPA docs/manual [1] and/or this blog post [2] which gives some background on enhancement.
[1] http://openjpa.apache.org/entity-enhancement.html [1.5] http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_pc_enhance [2] http://webspherepersistence.blogspot.com/2009/02/openjpa-enhancement.html Thanks, Rick On Tue, Oct 20, 2009 at 5:31 PM, shriram <[email protected]> wrote: > Hello, > > How can i disable enhancement on my netbeans project ? both build and > compile time. > > I tried > <property name="openjpa.DynamicEnhancementAgent" value="false"/> > > It still gives me > > 125 jpatestingPU INFO [main] openjpa.jdbc.JDBC - Using dictionary class > "org.apache.openjpa.jdbc.sql.MySQLDictionary". > Exception in thread "main" <openjpa-2.0.0-M3-r422266:822833 nonfatal user > error> org.apache.openjpa.persistence.ArgumentException: This configuration > disallows runtime optimization, but the following listed types were not > enhanced at build time or at class load time with a javaagent: "[class > com.ejb.entity.Magazine]". > at > org.apache.openjpa.enhance.ManagedClassSubclasser.prepareUnenhancedClasses(ManagedClassSubclasser.java:117) > at > org.apache.openjpa.kernel.AbstractBrokerFactory.loadPersistentTypes(AbstractBrokerFactory.java:305) > > I am using openJPA 2.0/// > > Thanks > sriram > > >
