Class JPAConfig
java.lang.Object
org.summerboot.jexpress.boot.config.BootConfig
org.summerboot.jexpress.integration.jpa.JPAConfig
- All Implemented Interfaces:
JExpressConfig
- Direct Known Subclasses:
JPAHibernateConfig
- 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 TypeFieldDescriptionFields 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
Modifier and TypeMethodDescriptionprotected abstract voidabstract jakarta.persistence.EntityManagerem()voidLoad config settings with @Config, supported Java types:voidprotected voidloadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) protected voidscanAnnotation_Entity(String csvPackageNames, Set<String> packageSet) Methods 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, updateFilePathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.summerboot.jexpress.boot.config.JExpressConfig
shutdown
-
Field Details
-
settings
-
entityClasses
-
-
Constructor Details
-
JPAConfig
public JPAConfig()
-
-
Method Details
-
getSettings
-
getEntityClasses
-
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
-
scanAnnotation_Entity
-
loadCustomizedConfigs
protected void loadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) throws Exception - Specified by:
loadCustomizedConfigsin classBootConfig- Throws:
Exception
-
buildEntityManagerFactory
protected abstract void buildEntityManagerFactory() -
em
public abstract jakarta.persistence.EntityManager em()
-