Class JPAHibernateConfig
java.lang.Object
org.summerboot.jexpress.boot.config.BootConfig
org.summerboot.jexpress.integration.jpa.JPAConfig
org.summerboot.jexpress.integration.jpa.JPAHibernateConfig
- All Implemented Interfaces:
JExpressConfig
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Nested Class Summary
Nested classes/interfaces inherited from class org.summerboot.jexpress.boot.config.BootConfig
BootConfig.ThreadingMode -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected org.hibernate.SessionFactoryFields inherited from class org.summerboot.jexpress.integration.jpa.JPAConfig
entityClasses, settingsFields inherited from class org.summerboot.jexpress.boot.config.BootConfig
BR, cache, cfgFile, configName, CPU_CORE, DESC_KMF, DESC_PLAINPWD, DESC_TMF, FILENAME_KEYSTORE, FILENAME_SRC_TRUSTSTORE, generateTemplate, logger, props -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.summerboot.jexpress.integration.jpa.JPAConfig
getEntityClasses, getSettings, load, load, loadCustomizedConfigs, scanAnnotation_EntityMethods inherited from class org.summerboot.jexpress.boot.config.BootConfig
buildThreadPoolExecutor, createIfNotExist, generateTemplate, getCfgFile, getLength, getProperties, info, instance, lineBreak, loadField, name, parse, preLoad, registerSingleton, temp, updateConfigFile, updateFilePath
-
Field Details
-
dummyfield4annotion1
@ConfigHeader(title="1. Hibernate properties for Database Connection", callbackMethodName4Dump="generateTemplate_JPAConnection") protected final String dummyfield4annotion1 -
dummyfield4annotion2
@ConfigHeader(title="2. Connection Pool", callbackMethodName4Dump="generateTemplate_ConnectionPool") protected final String dummyfield4annotion2 -
sessionFactory
protected volatile org.hibernate.SessionFactory sessionFactory
-
-
Constructor Details
-
JPAHibernateConfig
protected JPAHibernateConfig()
-
-
Method Details
-
main
-
generateTemplate_JPAConnection
-
generateTemplate_ConnectionPool
-
buildEntityManagerFactory
protected void buildEntityManagerFactory()- Specified by:
buildEntityManagerFactoryin classJPAConfig
-
shutdown
public void shutdown() -
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory() -
em
public jakarta.persistence.EntityManager em()
-