Issue Details (XML | Word | Printable)

Key: NUCCORE-416
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Core

Support PMF singleton pattern

Created: 26/Oct/09 09:24 AM   Updated: 04/Oct/12 05:02 PM   Resolved: 26/Oct/09 09:44 AM
Component/s: Persistence
Affects Version/s: None
Fix Version/s: 2.0.0.m4

 Description  « Hide
Would be nice to allow support for a singleton PMF pattern by allowing a PMF property to define that the PMF with a particular name (JDO name, or persistence-unit name) is registered and any subsequent attempt to generate the PMF of that name logs a warning and returns the existing PMF.

Andy Jefferson added a comment - 26/Oct/09 09:44 AM
Setting the PMF property "datanucleus.singletonPMFForName" to true results in a single PMF for that PMF/persistence-unit name being created (and returned when subsequently requested). When it is closed then a new one can be created

Andy Jefferson made changes - 26/Oct/09 09:44 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 26/Dec/09 12:57 PM
Status Resolved [ 5 ] Closed [ 6 ]
Andy Jefferson made changes - 04/Oct/12 05:02 PM
Component/s Persistence [ 10200 ]
Component/s JDO [ 10201 ]