/V2_NOTES.txt

http://datanucleus-appengine.googlecode.com/ · Plain Text · 34 lines · 21 code · 13 blank · 0 comment · 0 complexity · 169eea8cd41c7860bde850e13efc26ae MD5 · raw file

  1. The major change with version 2 is to use DataNucleus v3.x. This brings with it some significant changes.
  2. * JDO PersistenceManagerFactoryClass is now "org.datanucleus.api.jdo.JDOPersistenceManagerFactory"
  3. * JPA "persistence provider" is now "org.datanucleus.api.jpa.PersistenceProviderImpl"
  4. * Level2 Caching is enabled by default.
  5. Set persistence property "datanucleus.cache.level2.type" to "none" to get the previous behaviour.
  6. Alternatively include the datanucleus-cache plugin in the classpath, and set persistence property
  7. "datanucleus.cache.level2.type" to "javax.cache" and it will use GAE Memcached for L2 caching.
  8. * Datastore IdentifierFactory has changed to default to "datanucleus2".
  9. Set persistence property "datanucleus.identifierFactory" to "datanucleus1" to get the previous behaviour.
  10. * Non-transactional calls to pm.makePersistent, pm.deletePersistent, em.persist, em.merge, em.remove are now
  11. executed atomically, whereas before you waited til the next transaction or pm.close/em.close
  12. * JPA has "retainValues" enabled so so have the values of loaded fields retained in objects after commit.
  13. * "javax.persistence.query.chunkSize" is no longer used (invalid name anyway). Use "datanucleus.query.fetchSize" instead.
  14. * There is now no longer an exception on duplicate PMF allocation. Instead if you have the persistence property
  15. "datanucleus.singletonPMFForName" set to "true" then it will return the currently allocated singleton PMF for that name.
  16. * There is now no longer an exception on duplicate EMF allocation. Instead if you have the persistence property
  17. "datanucleus.singletonEMFForName" set to "true" then it will return the currently allocated singleton EMF for that name.
  18. * JDOQL/JPQL setResultClass now works
  19. * Primary Keys can now also be of type long.
  20. * Unowned relations supported
  21. * Datastore Identity supported