GAE and JPA 2.0 "eclipselink.cache.shared.default" is a legacy entity caching property

1k views Asked by At

According to google I can use JPA 2.0 but I should do it with the xml descriptor for version JPA 1.0: https://developers.google.com/appengine/docs/java/datastore/jpa/overview-dn2#Setting_Up_JPA_2_0

<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">

So if I want to disable the shared caching I should use:

<property name="eclipselink.cache.shared.default" value="false" />

which is resulting in warning :

"eclipselink.cache.shared.default" is a legacy entity caching property. Consider migration to JPA 2.0 and EclipseLink cache settings via annotation or XML mapping file

But again I cannot use JPA persistence xml descriptor for JPA 2.0. How to get rid of this warning? Using whatever tag that is for JPA 2.0 is resulting in error. Thank you for the help!

0

There are 0 answers