Handles closing a previously opened EntityManager
.
Handles closing a previously opened EntityManager
. Subclasses must
provide a concrete implementation.
The EntityManager
to close
Return the name of the configured persistence unit name
Return the name of the configured persistence unit name
Handles the actual opening of an EntityManager
.
Handles the actual opening of an EntityManager
. Subclasses must
provide a concrete implementation.
An appropriately configured EntityManager
Returns a newly created ScalaEntityManager
.
Returns a newly created ScalaEntityManager
. This is the method
that clients would typically use to obtain their EM.
A new ScalaEntityManager
instance.
This trait defines the operations for obtaining and properly closing an EntityManager. The purpose of this trait is to allow interception and ancillary processing on EM setup and teardown. Typical usage of a concrete impl (called EMImpl in this example) would be: