DescriptionDataNucleus 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 #
MessagesTotal messages: 2
|