org.hibernate.cfg.Configuration.validate()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中org.hibernate.cfg.Configuration.validate()方法的一些代码示例,展示了Configuration.validate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.validate()方法的具体详情如下:
包路径:org.hibernate.cfg.Configuration
类名称:Configuration
方法名:validate

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();

相关文章

Configuration类方法