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

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

源代码1 项目: lams   文件: ModelBinder.java
private void bindDiscriminatorSubclassEntities(
		AbstractEntitySourceImpl entitySource,
		PersistentClass superEntityDescriptor) {
	for ( IdentifiableTypeSource subType : entitySource.getSubTypes() ) {
		final SingleTableSubclass subEntityDescriptor = new SingleTableSubclass( superEntityDescriptor, metadataBuildingContext );
		bindDiscriminatorSubclassEntity( (SubclassEntitySourceImpl) subType, subEntityDescriptor );
		superEntityDescriptor.addSubclass( subEntityDescriptor );
		entitySource.getLocalMetadataBuildingContext().getMetadataCollector().addEntityBinding( subEntityDescriptor );
	}
}
 
源代码2 项目: lams   文件: ModelBinder.java
private void bindJoinedSubclassEntities(
		AbstractEntitySourceImpl entitySource,
		PersistentClass superEntityDescriptor) {
	for ( IdentifiableTypeSource subType : entitySource.getSubTypes() ) {
		final JoinedSubclass subEntityDescriptor = new JoinedSubclass( superEntityDescriptor, metadataBuildingContext );
		bindJoinedSubclassEntity( (JoinedSubclassEntitySourceImpl) subType, subEntityDescriptor );
		superEntityDescriptor.addSubclass( subEntityDescriptor );
		entitySource.getLocalMetadataBuildingContext().getMetadataCollector().addEntityBinding( subEntityDescriptor );
	}
}
 
源代码3 项目: lams   文件: ModelBinder.java
private void bindUnionSubclassEntities(
		EntitySource entitySource,
		PersistentClass superEntityDescriptor) {
	for ( IdentifiableTypeSource subType : entitySource.getSubTypes() ) {
		final UnionSubclass subEntityDescriptor = new UnionSubclass( superEntityDescriptor, metadataBuildingContext );
		bindUnionSubclassEntity( (SubclassEntitySourceImpl) subType, subEntityDescriptor );
		superEntityDescriptor.addSubclass( subEntityDescriptor );
		entitySource.getLocalMetadataBuildingContext().getMetadataCollector().addEntityBinding( subEntityDescriptor );
	}
}
 
源代码4 项目: cacheonix-core   文件: HbmBinder.java
private static void handleUnionSubclass(PersistentClass model, Mappings mappings,
		Element subnode, java.util.Map inheritedMetas) throws MappingException {
	UnionSubclass subclass = new UnionSubclass( model );
	bindUnionSubclass( subnode, subclass, mappings, inheritedMetas );
	model.addSubclass( subclass );
	mappings.addClass( subclass );
}
 
源代码5 项目: cacheonix-core   文件: HbmBinder.java
private static void handleJoinedSubclass(PersistentClass model, Mappings mappings,
		Element subnode, java.util.Map inheritedMetas) throws MappingException {
	JoinedSubclass subclass = new JoinedSubclass( model );
	bindJoinedSubclass( subnode, subclass, mappings, inheritedMetas );
	model.addSubclass( subclass );
	mappings.addClass( subclass );
}
 
源代码6 项目: cacheonix-core   文件: HbmBinder.java
private static void handleSubclass(PersistentClass model, Mappings mappings, Element subnode,
		java.util.Map inheritedMetas) throws MappingException {
	Subclass subclass = new SingleTableSubclass( model );
	bindSubclass( subnode, subclass, mappings, inheritedMetas );
	model.addSubclass( subclass );
	mappings.addClass( subclass );
}