Reputation: 17269
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/
:
Currently, this are the content of project's lib
folder that might affect the migration:
Which files should I delete? I tried to delete files which have new version but eclipse is looking for older files:
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
Upvotes: 2
Views: 1149
Reputation: 5081
using Datanucleus requires eclipse plugin check this link
Change Persistence Provider to in your persistence.xml
org.datanucleus.api.jpa.PersistenceProviderImpl
JPA 2.0 Provider more here
Change every single library with the same new one
here is a screen shot of my application Note* Using GAE 1.7.4
Upvotes: 1