I want to update my GAE web app to use JPA 2.0. From the doc here, it says that I have to copy the content of appengine-java-sdk/lib/opt/user/datanucleus/v2/
to lib
folder of the project.
This are the files of appengine-java-sdk/lib/opt/user/datanucleus/v2/
:
- asm-4.0.jar
- datanucleus-api-jdo-3.1.3.jar
- datanucleus-api-jpa-3.1.3.jar
- datanucleus-appengine-2.1.2.jar
- datanucleus-core-3.1.3.jar
- geronimo-jpa_2.0_spec-1.0.jar
- jdo-api-3.0.1.jar
- jta-1.1.jar
Currently, this are the content of project's lib
folder that might affect the migration:
- appengine-api-1.0-sdk-1.7.7.1.jar
- appengine-api-labs.jar
- appengine-endpoints.jar
- appengine-jsr107cache-1.7.7.1.jar
- asm-3.3.jar
- asm-commons-3.3.jar
- asm-tree-3.3.jar
- datanucleus-appengine-1.0.10.final.jar
- datanucleus-core-1.1.5.jar
- datanucleus-jpa-1.1.5.jar
- geronimo-jpa_3.0_spec-1.1.1.jar
- geronimo-jta_1.1_spec-1.1.1.jar
- jdo2-api-2.3-eb.jar
- jsr107cache-1.1.jar
Which files should I delete? I tried to delete files which have new version but eclipse is looking for older files:
- datanucleus-appengine-1.0.10.final.jar
- datanucleus-core-1.1.5.jar
- geronimo-jpa_3.0_spec-1.1.1.jar
This is my persistence.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<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_1_0.xsd" version="1.0">
<persistence-unit name="transactions-optional">
<provider>org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider</provider>
<properties>
<property name="datanucleus.NontransactionalRead" value="true"/>
<property name="datanucleus.NontransactionalWrite" value="true"/>
<property name="datanucleus.ConnectionURL" value="appengine"/>
<property name="datanucleus.appengine.ignorableMetaDataBehavior" value="NONE"/>
</properties>
</persistence-unit>
</persistence>
Any help on this? Thanks