mappingResources: equivalent to <mapping resource="..."/>
or through cfg.xml files.
The jndiProperties are convenience, the factory will automatically
prefix regular JNDI properties for use as Hibernate configuration properties.
- Author:
- Gavin King, Christian Bauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateFactory
public HibernateFactory()
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
throws Exception
- Throws:
Exception
createSessionFactory
protected org.hibernate.SessionFactory createSessionFactory()
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getCfgResourceName
public String getCfgResourceName()
setCfgResourceName
public void setCfgResourceName(String cfgFileName)
getCfgProperties
public Map<String,String> getCfgProperties()
setCfgProperties
public void setCfgProperties(Map<String,String> cfgProperties)
getMappingClasses
public List<String> getMappingClasses()
setMappingClasses
public void setMappingClasses(List<String> mappingClasses)
getMappingFiles
public List<String> getMappingFiles()
setMappingFiles
public void setMappingFiles(List<String> mappingFiles)
getMappingJars
public List<String> getMappingJars()
setMappingJars
public void setMappingJars(List<String> mappingJars)
getMappingPackages
public List<String> getMappingPackages()
setMappingPackages
public void setMappingPackages(List<String> mappingPackages)
getMappingResources
public List<String> getMappingResources()
setMappingResources
public void setMappingResources(List<String> mappingResources)