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/:

  1. asm-4.0.jar
  2. datanucleus-api-jdo-3.1.3.jar
  3. datanucleus-api-jpa-3.1.3.jar
  4. datanucleus-appengine-2.1.2.jar
  5. datanucleus-core-3.1.3.jar
  6. geronimo-jpa_2.0_spec-1.0.jar
  7. jdo-api-3.0.1.jar
  8. jta-1.1.jar

currently, content of project's lib folder might affect migration:

  1. appengine-api-1.0-sdk-1.7.7.1.jar
  2. appengine-api-labs.jar
  3. appengine-endpoints.jar
  4. appengine-jsr107cache-1.7.7.1.jar
  5. asm-3.3.jar
  6. asm-commons-3.3.jar
  7. asm-tree-3.3.jar
  8. datanucleus-appengine-1.0.10.final.jar
  9. datanucleus-core-1.1.5.jar
  10. datanucleus-jpa-1.1.5.jar
  11. geronimo-jpa_3.0_spec-1.1.1.jar
  12. geronimo-jta_1.1_spec-1.1.1.jar
  13. jdo2-api-2.3-eb.jar
  14. jsr107cache-1.1.jar

which files should delete? tried delete files have new version eclipse looking older files:

  1. datanucleus-appengine-1.0.10.final.jar
  2. datanucleus-core-1.1.5.jar
  3. 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

gae-lib here


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -