DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
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.

Sort Order: Ascending order - Click to sort in descending order
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