http://www.oracle.com/technology/products/ias/toplink/jpa/index.html
Per sostituire il persistence provider Toplink Essentials con EclipseLink, basta seguire questa semplice procedura:
- Sostituire le librerie
- aggiornare il file persistence.xml effettuando le seguenti sostituzioni
<provider>oracle.toplink.essentials.PersistenceProvider</provider>
con
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
e poi
<property name="toplink.jdbc.user" value=""/>
<property name="toplink.jdbc.password" value=""/>
<property name="toplink.jdbc.url" value=""/>
<property name="toplink.jdbc.driver" value=""/>
con
<property name="javax.persistence.jdbc.user" value=""/>
<property name="javax.persistence.jdbc.password" value=""/>
<property name="javax.persistence.jdbc.url" value=""/>
<property name="javax.persistence.jdbc.driver" value=""/>
con
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
e poi
<property name="toplink.jdbc.user" value=""/>
<property name="toplink.jdbc.password" value=""/>
<property name="toplink.jdbc.url" value=""/>
<property name="toplink.jdbc.driver" value=""/>
con
<property name="javax.persistence.jdbc.user" value=""/>
<property name="javax.persistence.jdbc.password" value=""/>
<property name="javax.persistence.jdbc.url" value=""/>
<property name="javax.persistence.jdbc.driver" value=""/>
Nessun commento:
Posta un commento