DescriptionDataNucleus has a handler to allocate singleton PMFs. If you set a persistence property "datanucleus.singletonPMFForName" then it will hand out a singleton instance of that PMF. If you subsequently try to create a PMF with that name then it returns the current (active) PMF 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 #
MessagesTotal messages: 3
|