本文整理了Java中org.hibernate.cfg.Configuration.validate()
方法的一些代码示例,展示了Configuration.validate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.validate()
方法的具体详情如下:
包路径:org.hibernate.cfg.Configuration
类名称:Configuration
方法名:validate
暂无
代码示例来源:origin: hibernate/hibernate
/**
* Instantiate a new <tt>SessionFactory</tt>, using the properties and
* mappings in this configuration. The <tt>SessionFactory</tt> will be
* immutable, so changes made to the <tt>Configuration</tt> after
* building the <tt>SessionFactory</tt> will not affect it.
*
* @return a new factory for <tt>Session</tt>s
* @see org.hibernate.SessionFactory
*/
public SessionFactory buildSessionFactory() throws HibernateException {
log.debug( "Preparing to build session factory with filters : " + filterDefinitions );
secondPassCompile();
validate();
Environment.verifyProperties( properties );
Properties copy = new Properties();
copy.putAll( properties );
Settings settings = buildSettings();
return new SessionFactoryImpl( this, mapping, settings, sessionEventListenerConfig.shallowCopy() );
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
validate();
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
validate();
内容来源于网络,如有侵权,请联系作者删除!