Google App Engine - Update JPA 1 to JPA 2 -
i want update gae web app use jpa 2.0. doc here, says have copy content of appengine-java-sdk/lib/opt/user/datanucleus/v2/
lib
folder of project.
this 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, content of project's lib
folder might affect 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 delete? tried delete files have new version eclipse looking 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 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 on this? thanks
using datanucleus requires eclipse plugin check link
change persistence provider in persistence.xml
org.datanucleus.api.jpa.persistenceproviderimpl
jpa 2.0 provider more here
change every single library same new 1
here screen shot of application note* using gae 1.7.4
Comments
Post a Comment