Class JPAHibernateConfig
java.lang.Object
org.summerboot.jexpress.integration.db.JPAHibernateConfig
- All Implemented Interfaces:
JExpressConfig
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Field Details
-
CFG
-
-
Constructor Details
-
JPAHibernateConfig
public JPAHibernateConfig()
-
-
Method Details
-
getCfgFile
- Specified by:
getCfgFilein interfaceJExpressConfig
-
name
- Specified by:
namein interfaceJExpressConfig
-
info
- Specified by:
infoin interfaceJExpressConfig
-
temp
- Specified by:
tempin interfaceJExpressConfig- Returns:
- null - disable reload
-
load
- Specified by:
loadin interfaceJExpressConfig- Throws:
IOExceptionGeneralSecurityException
-
load
- Parameters:
cfgFile-packages- in which contains the @Entity classes- Throws:
IOExceptionGeneralSecurityException
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceJExpressConfig
-
getSettings
-
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory() -
em
public jakarta.persistence.EntityManager em() -
getProperty
-
getEntityClasses
-