org.modulefusion.featurepack.hibernate |
|
Java Source File Name | Type | Comment |
JpaModule.java | Class | This module contains the following artifacts:
-
ThreadLocalEntityManagerService - a service useful for
interaction with
EntityManager s and transactions
-
EntityManager - a thread local
EntityManager instance
-
Transactional - a method annotation used to mark a transactional
method
Applications will normally either use the
ThreadLocalEntityManagerService or the thread local
EntityManager and
Transactional annotation. |
JpaService.java | Interface | This service creates JPA configurations based on the installed bundles.
A bundle that would like to contribute to the configuration has to provide
the file "OSGI-INF/jpa/classes" and list all the entities in it. |
ThreadLocalEntityManagerService.java | Interface | Service to ease the use of
EntityManager s.
This service allow access to a thread local
EntityManager .
Applications that use one
EntityManager per thread can use this
service for interaction with the
EntityManager and transaction
control.
Implementations of this interface need to manage a list of thread local
EntityManager s. |
Transactional.java | Annotation | Method annotation to mark a method as transactional. |