openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vnjaldawar <vnjalda...@gmail.com>
Subject Re: OpenJPA 2.3.0 StackOverflow Error for the entities.
Date Thu, 23 Nov 2017 08:07:55 GMT
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

Mime
View raw message