Class JpaConfiguration
- java.lang.Object
-
- org.hibernate.cfg.Configuration
-
- org.hibernate.tool.orm.jbt.internal.util.JpaConfiguration
-
- All Implemented Interfaces:
ExtendedConfiguration
public class JpaConfiguration extends org.hibernate.cfg.Configuration implements ExtendedConfiguration
-
-
Constructor Summary
Constructors Constructor Description JpaConfiguration(String persistenceUnit, Map<?,?> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.cfg.ConfigurationaddClass(Class pc)org.hibernate.cfg.ConfigurationaddFile(File file)org.hibernate.cfg.ConfigurationaddProperties(Properties properties)voidbuildMappings()org.hibernate.SessionFactorybuildSessionFactory()org.hibernate.cfg.Configurationconfigure()org.hibernate.cfg.Configurationconfigure(File file)org.hibernate.cfg.Configurationconfigure(Document document)org.hibernate.mapping.PersistentClassgetClassMapping(String name)Iterator<org.hibernate.mapping.PersistentClass>getClassMappings()EntityResolvergetEntityResolver()org.hibernate.boot.MetadatagetMetadata()org.hibernate.cfg.NamingStrategygetNamingStrategy()StringgetPersistenceUnit()Iterator<org.hibernate.mapping.Table>getTableMappings()voidreadFromJDBC()voidsetEntityResolver(EntityResolver entityResolver)voidsetNamingStrategy(org.hibernate.cfg.NamingStrategy namingStrategy)voidsetPreferBasicCompositeIds(boolean b)org.hibernate.cfg.ConfigurationsetProperties(Properties properties)voidsetReverseEngineeringStrategy(RevengStrategy strategy)-
Methods inherited from class org.hibernate.cfg.Configuration
addAnnotatedClass, addAttributeConverter, addAttributeConverter, addAttributeConverter, addAttributeConverter, addAttributeConverter, addAuxiliaryDatabaseObject, addCacheableFile, addCacheableFile, addCacheableFileStrictly, addDirectory, addEntityNameResolver, addFile, addInputStream, addJar, addPackage, addResource, addSqlFunction, addURL, addXmlMapping, buildSessionFactory, configure, configure, getColumnOrderingStrategy, getCurrentTenantIdentifierResolver, getCustomEntityDirtinessStrategy, getEntityNotFoundDelegate, getImplicitNamingStrategy, getInterceptor, getNamedEntityGraphs, getNamedProcedureCallMap, getNamedQueries, getNamedSQLQueries, getPhysicalNamingStrategy, getProperties, getProperty, getSessionFactoryObserver, getSqlFunctions, getSqlResultSetMappings, getStandardServiceRegistryBuilder, getStatementInspector, getXmlMappingBinderAccess, mergeProperties, registerFunctionContributor, registerTypeContributor, registerTypeOverride, registerTypeOverride, setColumnOrderingStrategy, setCurrentTenantIdentifierResolver, setCustomEntityDirtinessStrategy, setEntityNotFoundDelegate, setImplicitNamingStrategy, setInterceptor, setPhysicalNamingStrategy, setProperty, setProperty, setProperty, setProperty, setProperty, setSessionFactoryObserver, setSharedCacheMode, setStatementInspector
-
-
-
-
Method Detail
-
getMetadata
public org.hibernate.boot.Metadata getMetadata()
-
buildSessionFactory
public org.hibernate.SessionFactory buildSessionFactory()
- Overrides:
buildSessionFactoryin classorg.hibernate.cfg.Configuration
-
setProperties
public org.hibernate.cfg.Configuration setProperties(Properties properties)
- Overrides:
setPropertiesin classorg.hibernate.cfg.Configuration
-
addProperties
public org.hibernate.cfg.Configuration addProperties(Properties properties)
- Overrides:
addPropertiesin classorg.hibernate.cfg.Configuration
-
buildMappings
public void buildMappings()
- Specified by:
buildMappingsin interfaceExtendedConfiguration
-
addFile
public org.hibernate.cfg.Configuration addFile(File file)
- Overrides:
addFilein classorg.hibernate.cfg.Configuration
-
addClass
public org.hibernate.cfg.Configuration addClass(Class pc)
- Overrides:
addClassin classorg.hibernate.cfg.Configuration
-
configure
public org.hibernate.cfg.Configuration configure()
- Overrides:
configurein classorg.hibernate.cfg.Configuration
-
configure
public org.hibernate.cfg.Configuration configure(Document document)
- Specified by:
configurein interfaceExtendedConfiguration
-
configure
public org.hibernate.cfg.Configuration configure(File file)
- Overrides:
configurein classorg.hibernate.cfg.Configuration
-
setEntityResolver
public void setEntityResolver(EntityResolver entityResolver)
- Specified by:
setEntityResolverin interfaceExtendedConfiguration
-
setNamingStrategy
public void setNamingStrategy(org.hibernate.cfg.NamingStrategy namingStrategy)
- Specified by:
setNamingStrategyin interfaceExtendedConfiguration
-
getPersistenceUnit
public String getPersistenceUnit()
-
setPreferBasicCompositeIds
public void setPreferBasicCompositeIds(boolean b)
- Specified by:
setPreferBasicCompositeIdsin interfaceExtendedConfiguration
-
setReverseEngineeringStrategy
public void setReverseEngineeringStrategy(RevengStrategy strategy)
- Specified by:
setReverseEngineeringStrategyin interfaceExtendedConfiguration
-
getClassMappings
public Iterator<org.hibernate.mapping.PersistentClass> getClassMappings()
- Specified by:
getClassMappingsin interfaceExtendedConfiguration
-
getClassMapping
public org.hibernate.mapping.PersistentClass getClassMapping(String name)
- Specified by:
getClassMappingin interfaceExtendedConfiguration
-
getTableMappings
public Iterator<org.hibernate.mapping.Table> getTableMappings()
- Specified by:
getTableMappingsin interfaceExtendedConfiguration
-
getNamingStrategy
public org.hibernate.cfg.NamingStrategy getNamingStrategy()
- Specified by:
getNamingStrategyin interfaceExtendedConfiguration
-
getEntityResolver
public EntityResolver getEntityResolver()
- Specified by:
getEntityResolverin interfaceExtendedConfiguration
-
readFromJDBC
public void readFromJDBC()
- Specified by:
readFromJDBCin interfaceExtendedConfiguration
-
-