Class EntityManagerFactoryCreator
java.lang.Object
cloud.piranha.extension.eclipselink.EntityManagerFactoryCreator
This bean takes care of creating an EntityManagerFactory using EclipseLink specific APIs.
- Author:
- arjan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.EntityManagerFactory
Gets theEntityManagerFactory
corresponding to the unit name.Gets the AnnotationManager used to lookup entity classes etcvoid
setAnnotationManager
(AnnotationManager annotationManager) Sets the AnnotationManager used to lookup entity classes etc
-
Constructor Details
-
EntityManagerFactoryCreator
public EntityManagerFactoryCreator()
-
-
Method Details
-
getAnnotationManager
Gets the AnnotationManager used to lookup entity classes etc- Returns:
-
setAnnotationManager
Sets the AnnotationManager used to lookup entity classes etc- Parameters:
annotationManager
-
-
get
Gets theEntityManagerFactory
corresponding to the unit name. Created if needed.- Parameters:
unitName
- name of the persistence unit- Returns:
EntityManagerFactory
corresponding to the unit name
-