Hi
OpenJPA keep telling me:
This configuration disallows runtime optimization, but the following listed
types were not enhanced at build time or at class load time with a
javaagent:
But I'm already doing the enhancement during maven build.
I'm tried both maven-openjpa-plugin and maven-antrun-plugin like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<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>run</goal>
</goals>
</execution>
</executions>
</plugin>
And the persistence xml:
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
<persistence-unit name="medialibraryUnit" transaction-type="JTA">
<description>Persistence unit for Chii2 Media Library</description>
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
<jta-data-source>osgi:service/javax.sql.DataSource/(
osgi.jndi.service.name=jdbc/medialibrarydb)
</jta-data-source>
<non-jta-data-source>osgi:service/javax.sql.DataSource/(
osgi.jndi.service.name=jdbc/medialibrarydbnojta)
</non-jta-data-source>
<!-- Mapping Classes -->
<class>org.chii2.medialibrary.persistence.entity.MovieImpl</class>
<class>org.chii2.medialibrary.persistence.entity.MovieFileImpl</class>
<class>org.chii2.medialibrary.persistence.entity.MovieInfoImpl</class>
<class>org.chii2.medialibrary.persistence.entity.MovieImageImpl</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="openjpa.Log" value="DefaultLevel=WARN,
Runtime=INFO, Tool=INFO"/>
<property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)"/>
<property name="openjpa.jdbc.DBDictionary" value="derby"/>
</properties>
</persistence-unit>
</persistence>
When I build with maven, I didn't see any error.
The database created by OpenJPA doesn't contain any table related to my
entity!
I don't know where else to looking at.
Is that possible this error caused by something else, not related to the
enhancement?
And clue would be very thankful.
Regards
LongkerDandy