Class JPADynamicHelper
java.lang.Object
org.eclipse.persistence.dynamic.DynamicHelper
org.eclipse.persistence.jpa.dynamic.JPADynamicHelper
- Author:
- dclarke
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.dynamic.DynamicHelper
DynamicHelper.SessionCustomizer
-
Field Summary
Fields inherited from class org.eclipse.persistence.dynamic.DynamicHelper
fqClassnameToDescriptor, session
-
Constructor Summary
ConstructorDescriptionJPADynamicHelper
(jakarta.persistence.EntityManager em) JPADynamicHelper
(jakarta.persistence.EntityManagerFactory emf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTypes
(boolean createMissingTables, boolean generateFKConstraints, DynamicType... types) Add one or more EntityType instances to a session and optionally generate needed tables with or without FK constraints.Methods inherited from class org.eclipse.persistence.dynamic.DynamicHelper
getDynamicClassLoader, getSession, getType, getType, getType, newDynamicEntity, newReadAllQuery, newReadObjectQuery, newReportQuery, removeType
-
Constructor Details
-
JPADynamicHelper
public JPADynamicHelper(jakarta.persistence.EntityManagerFactory emf) -
JPADynamicHelper
public JPADynamicHelper(jakarta.persistence.EntityManager em)
-
-
Method Details
-
addTypes
public void addTypes(boolean createMissingTables, boolean generateFKConstraints, DynamicType... types) Add one or more EntityType instances to a session and optionally generate needed tables with or without FK constraints.- Overrides:
addTypes
in classDynamicHelper
-