Class JPAHibernateConfig
java.lang.Object
org.summerboot.jexpress.boot.config.BootConfig
org.summerboot.jexpress.integration.jpa.JPAHibernateConfig
- All Implemented Interfaces:
JExpressConfig
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Field Summary
Fields inherited from class org.summerboot.jexpress.boot.config.BootConfig
cfgFile, configName, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.EntityManagerem()getProperty(String key) org.hibernate.SessionFactoryvoidLoad config settings with @Config, supported Java types:voidprotected voidloadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) voidshutdown()Methods inherited from class org.summerboot.jexpress.boot.config.BootConfig
generateTemplate, getCfgFile, info, instance, loadField, name, temp, updateConfigFile, updateFilePath
-
Constructor Details
-
JPAHibernateConfig
protected JPAHibernateConfig()
-
-
Method Details
-
loadCustomizedConfigs
protected void loadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) throws Exception - Specified by:
loadCustomizedConfigsin classBootConfig- Throws:
Exception
-
load
Description copied from class:BootConfigLoad config settings with @Config, supported Java types:1. T, K: enum, String, boolean/Boolean, byte/Byte, char/short/Short, int/Integer, long/Long, float/Float, double/Double, BigDecimal, URI, URL, Path, File 2. <T>[] array 3. Immutable Set<T> 4. Immutable List<T> 5. Immutable Map<T, K> 6. KeyManagerFactory 7. TrustManagerFactory- Specified by:
loadin interfaceJExpressConfig- Overrides:
loadin classBootConfig- Throws:
IOException
-
load
- Parameters:
cfgFile-packages- in which contains the @Entity classes- Throws:
IOException
-
shutdown
public void shutdown() -
getSettings
-
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory() -
em
public jakarta.persistence.EntityManager em() -
getProperty
-
getEntityClasses
-