类 EntityHierarchyBuilder
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.EntityHierarchyBuilder
-
public class EntityHierarchyBuilder extends Object
Helper for dealing with entity inheritance hierarchies inhbm.xmlprocessing. Inhbm.xmlthe super/sub may be split across documents. The purpose of this class is to:- validate that all hierarchies are complete (make sure a mapping does not reference an unknown entity as its super)
- ultimately order the processing of every entity to make sure we process each hierarchy "downward" (from super to sub(s)).
- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 EntityHierarchyBuilder()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<EntityHierarchySourceImpl>buildHierarchies()To be called after all mapping documents have been processed (viaindexMappingDocument(org.hibernate.boot.model.source.internal.hbm.MappingDocument))voidindexMappingDocument(MappingDocument mappingDocument)Called for each mapping document.
-
-
-
方法详细资料
-
buildHierarchies
public List<EntityHierarchySourceImpl> buildHierarchies() throws HibernateException
To be called after all mapping documents have been processed (viaindexMappingDocument(org.hibernate.boot.model.source.internal.hbm.MappingDocument))- 返回:
- The built hierarchies
- 抛出:
HibernateException- Indicates subclass mappings still waiting to be linked to their super types
-
indexMappingDocument
public void indexMappingDocument(MappingDocument mappingDocument)
Called for each mapping document.- 参数:
mappingDocument- Thehbm.xmldocument to index
-
-