I found the solution. I have implemented build time enhancement and removed the runtime enahcement from the persistence.xml file
<build> <plugins> .. <plugin> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-maven-plugin</artifactId> <configuration> <includes>**/entity/*.class</includes> <addDefaultConstructor>true</addDefaultConstructor> <enforcePropertyRestrictions>true</enforcePropertyRestrictions> </configuration> <executions> <execution> <id>enhancer</id> <phase>process-classes</phase> <configuration> <tasks> <taskdef name="openjpac" classname="org.apache.openjpa.ant.PCEnhancerTask" classpathref="maven.compile.classpath"/> <openjpac> <classpath refid="maven.compile.classpath"/> </openjpac> </tasks> </configuration> <goals> <goal>enhance</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-maven-plugin</artifactId> <version>2.3.0</version> </dependency> </dependencies> </plugin> </plugins> </build> ----- Thanks and Regards, Vishal Jaldawar -- Sent from: http://openjpa.208410.n2.nabble.com/OpenJPA-Users-f208411.html