Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2312)

Issue 4707042: Remove duplicate EMF exception logic and make use of DN "singleton EMF" handler (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by datanucleus
Modified:
12 years, 9 months ago
Reviewers:
maxr
Base URL:
http://datanucleus-appengine.googlecode.com/svn/trunk/trunk/
Visibility:
Public.

Description

DataNucleus has a handler to allocate singleton EMFs. If you set a persistence property "datanucleus.singletonEMFForName" then it will hand out a singleton instance of that EMF. If you subsequently try to create a EMF with that name then it returns the current (active) EMF for that name. This patch removes the previous exception logic and makes use of the builtin singleton handler. The tests are updated to test allocation of a singleton, and allocation of a non-singleton.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -116 lines) Patch
src/com/google/appengine/datanucleus/jpa/DatastoreEntityManagerFactory.java View 4 chunks +2 lines, -74 lines 0 comments Download
src/com/google/appengine/datanucleus/jpa/DatastorePersistenceProvider.java View 3 chunks +7 lines, -2 lines 0 comments Download
tests/META-INF/persistence.xml View 1 chunk +15 lines, -0 lines 0 comments Download
tests/com/google/appengine/datanucleus/DatastoreTestCase.java View 2 chunks +1 line, -5 lines 0 comments Download
tests/com/google/appengine/datanucleus/jpa/DatastoreEntityManagerFactoryTest.java View 1 chunk +50 lines, -35 lines 0 comments Download

Messages

Total messages: 2
datanucleus
12 years, 9 months ago (2011-07-12 14:44:05 UTC) #1
maxr
12 years, 9 months ago (2011-07-13 04:20:35 UTC) #2
On 2011/07/12 14:44:05, datanucleus wrote:

LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b