本文整理了Java中org.hibernate.cfg.Configuration.parseSecurity()
方法的一些代码示例,展示了Configuration.parseSecurity()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.parseSecurity()
方法的具体详情如下:
包路径:org.hibernate.cfg.Configuration
类名称:Configuration
方法名:parseSecurity
暂无
代码示例来源:origin: hibernate/hibernate
protected Configuration doConfigure(org.dom4j.Document doc) throws HibernateException {
Element sfNode = doc.getRootElement().element( "session-factory" );
String name = sfNode.attributeValue( "name" );
if ( name != null ) properties.setProperty( Environment.SESSION_FACTORY_NAME, name );
addProperties( sfNode );
parseSessionFactory( sfNode, name );
Element secNode = doc.getRootElement().element( "security" );
if ( secNode != null ) parseSecurity( secNode );
log.info( "Configured SessionFactory: " + name );
log.debug( "properties: " + properties );
return this;
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
/**
* Parse a dom4j document conforming to the Hibernate Configuration DTD (<tt>hibernate-configuration-3.0.dtd</tt>)
* and use its information to configure this {@link Configuration}'s state
*
* @param doc The dom4j document
*
* @return this for method chaining
*
* @throws HibernateException Indicates a problem performing the configuration task
*/
protected Configuration doConfigure(Document doc) throws HibernateException {
Element sfNode = doc.getRootElement().element( "session-factory" );
String name = sfNode.attributeValue( "name" );
if ( name != null ) {
properties.setProperty( Environment.SESSION_FACTORY_NAME, name );
}
addProperties( sfNode );
parseSessionFactory( sfNode, name );
Element secNode = doc.getRootElement().element( "security" );
if ( secNode != null ) {
parseSecurity( secNode );
}
LOG.configuredSessionFactory( name );
LOG.debugf( "Properties: %s", properties );
return this;
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
/**
* Parse a dom4j document conforming to the Hibernate Configuration DTD (<tt>hibernate-configuration-3.0.dtd</tt>)
* and use its information to configure this {@link Configuration}'s state
*
* @param doc The dom4j document
*
* @return this for method chaining
*
* @throws HibernateException Indicates a problem performing the configuration task
*/
protected Configuration doConfigure(Document doc) throws HibernateException {
Element sfNode = doc.getRootElement().element( "session-factory" );
String name = sfNode.attributeValue( "name" );
if ( name != null ) {
properties.setProperty( Environment.SESSION_FACTORY_NAME, name );
}
addProperties( sfNode );
parseSessionFactory( sfNode, name );
Element secNode = doc.getRootElement().element( "security" );
if ( secNode != null ) {
parseSecurity( secNode );
}
LOG.configuredSessionFactory( name );
LOG.debugf( "Properties: %s", properties );
return this;
}
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
parseSecurity( secNode );
内容来源于网络,如有侵权,请联系作者删除!