Note that there are some explanatory texts on larger screens.

plurals
  1. POAppengine JPA level 2 cache fails to persist
    primarykey
    data
    text
    <p>i am attempting to use the datanucleus jpa level 2 cache with appengine.</p> <p>i am really unclear on how to configure for appengine.</p> <p>i have the following </p> <pre><code>persistence.xml &lt;property name="datanucleus.cache.level2" value="true"/&gt; &lt;property name="datanucleus.cache.level2.type" value="javax.cache"/&gt; &lt;property name="datanucleus.cache.level2.cacheName" value="xxxxx"/&gt; </code></pre> <p>and the maven snippet</p> <pre><code>pom.xml &lt;dependency&gt; &lt;groupId&gt;org.datanucleus&lt;/groupId&gt; &lt;artifactId&gt;datanucleus-jpa&lt;/artifactId&gt; &lt;version&gt;1.1.5&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.datanucleus&lt;/groupId&gt; &lt;artifactId&gt;datanucleus-cache&lt;/artifactId&gt; &lt;version&gt;1.1.1&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.google.appengine.orm&lt;/groupId&gt; &lt;artifactId&gt;datanucleus-appengine&lt;/artifactId&gt; &lt;version&gt;1.0.10&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.datanucleus&lt;/groupId&gt; &lt;artifactId&gt;datanucleus-core&lt;/artifactId&gt; &lt;version&gt;1.1.5&lt;/version&gt; &lt;/dependecny&gt; </code></pre> <p>Now the problem, when i persist a entity, it returns with a primary Key but it is not available from the either the datastore viewer or other queries. I get this problem with in local dev, junit test or remote instance of appengine.</p> <p>the code works fine as soon as the cache config is removed.</p> <p>snipet of test</p> <pre><code>@Test public void findById(){ MerchantPromotion merchantPromotion1 = new MerchantPromotion(); em.persist(merchantPromotion1); MerchantPromotion merchantPromotion = dao.findById( merchantPromotion1.getKey() ); assertNotNull( merchantPromotion); &lt;---- assert fails here } </code></pre> <p>what is the issue?</p> <p>thanks</p> <p>-lp</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload