|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionFactoryBuilder
Utility interface to build Hibernate SessionFactory
.
Please note that this interface will not be stable for some time, so avoid
using it directly. Anyway, it should be considered to be reserved for
hivetranse.hibernate
internal use only.
Method Summary | |
---|---|
org.hibernate.SessionFactory |
buildSessionFactory(org.apache.hivemind.Resource config,
java.util.Properties properties,
java.util.List<java.lang.String> mappingPackages,
java.util.List<java.lang.Class> mappingClasses,
java.util.List<java.net.URL> mappingFiles,
org.hibernate.Interceptor interceptor,
org.hibernate.cfg.NamingStrategy namingStrategy)
Builds a SessionFactory from a configuration file and
additional properties. |
Method Detail |
---|
org.hibernate.SessionFactory buildSessionFactory(org.apache.hivemind.Resource config, java.util.Properties properties, java.util.List<java.lang.String> mappingPackages, java.util.List<java.lang.Class> mappingClasses, java.util.List<java.net.URL> mappingFiles, org.hibernate.Interceptor interceptor, org.hibernate.cfg.NamingStrategy namingStrategy)
SessionFactory
from a configuration file and
additional properties.
config
- file containing the Hibernate configuration to be used for
creating the SessionFactory
properties
- additional properties that will be used to further
setup Hibernate configurationmappingClasses
- list of Class
that will be passed to
Hibernate Configuration
as persistent classes.mappingFiles
- list of URL
that will be passed to
Hibernate Configuration
as paths to Hibernate mapping XML
files.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |