org.hibernate.mapping.PersistentClass#hasSubclasses ( )源码实例Demo

下面列出了org.hibernate.mapping.PersistentClass#hasSubclasses ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: lams   文件: DynamicMapInstantiator.java
public DynamicMapInstantiator(PersistentClass mappingInfo) {
	this.entityName = mappingInfo.getEntityName();
	isInstanceEntityNames.add( entityName );
	if ( mappingInfo.hasSubclasses() ) {
		Iterator itr = mappingInfo.getSubclassClosureIterator();
		while ( itr.hasNext() ) {
			final PersistentClass subclassInfo = ( PersistentClass ) itr.next();
			isInstanceEntityNames.add( subclassInfo.getEntityName() );
		}
	}
}
 
源代码2 项目: cacheonix-core   文件: Dom4jInstantiator.java
public Dom4jInstantiator(PersistentClass mappingInfo) {
	this.nodeName = mappingInfo.getNodeName();
	isInstanceNodeNames.add( nodeName );

	if ( mappingInfo.hasSubclasses() ) {
		Iterator itr = mappingInfo.getSubclassClosureIterator();
		while ( itr.hasNext() ) {
			final PersistentClass subclassInfo = ( PersistentClass ) itr.next();
			isInstanceNodeNames.add( subclassInfo.getNodeName() );
		}
	}
}
 
源代码3 项目: cacheonix-core   文件: DynamicMapInstantiator.java
public DynamicMapInstantiator(PersistentClass mappingInfo) {
	this.entityName = mappingInfo.getEntityName();
	isInstanceEntityNames.add( entityName );
	if ( mappingInfo.hasSubclasses() ) {
		Iterator itr = mappingInfo.getSubclassClosureIterator();
		while ( itr.hasNext() ) {
			final PersistentClass subclassInfo = ( PersistentClass ) itr.next();
			isInstanceEntityNames.add( subclassInfo.getEntityName() );
		}
	}
}