Java Code Examples for org.hibernate.mapping.PersistentClass#hasSubclasses()
The following examples show how to use
org.hibernate.mapping.PersistentClass#hasSubclasses() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DynamicMapInstantiator.java From lams with GNU General Public License v2.0 | 5 votes |
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() ); } } }
Example 2
Source File: Dom4jInstantiator.java From cacheonix-core with GNU Lesser General Public License v2.1 | 5 votes |
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() ); } } }
Example 3
Source File: DynamicMapInstantiator.java From cacheonix-core with GNU Lesser General Public License v2.1 | 5 votes |
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() ); } } }