Notes on possible approaches based emails with Pete and myself:
----------------------------------------------------------------------------
Possibly be a <persistence:provider...> tag that could state two things:
1) "provider-class" - that class of the provider to instantiate
2) "entity-delegate-class" - that would the "isInstanceOf(..)" to use the provider
---------------------------------------------------------------------------
Possibly the EntityManagerProxy, or the ManagedPersistenceContext could hold the matching persistence provider impl and just use it as a field (still might require casting). This would be instead of determining the provider every time the parent PersistenceProvider is called.
-------------------------------------------------------------------------
Jay Balunas [27/Mar/08 02:34 PM]
Notes on possible approaches based emails with Pete and myself:
----------------------------------------------------------------------------
Possibly be a <persistence:provider...> tag that could state two things:
1) "provider-class" - that class of the provider to instantiate
2) "entity-delegate-class" - that would the "isInstanceOf(..)" to use the provider
---------------------------------------------------------------------------
Possibly the EntityManagerProxy, or the ManagedPersistenceContext could hold the matching persistence provider impl and just use it as a field (still might require casting). This would be instead of determining the provider every time the parent PersistenceProvider is called.
-------------------------------------------------------------------------
----------------------------------------------------------------------------
Possibly be a <persistence:provider...> tag that could state two things:
1) "provider-class" - that class of the provider to instantiate
2) "entity-delegate-class" - that would the "isInstanceOf(..)" to use the provider
---------------------------------------------------------------------------
Possibly the EntityManagerProxy, or the ManagedPersistenceContext could hold the matching persistence provider impl and just use it as a field (still might require casting). This would be instead of determining the provider every time the parent PersistenceProvider is called.
-------------------------------------------------------------------------