FileDocCategorySizeDatePackage
UnionSubclass.javaAPI DocHibernate 3.2.51264Tue Apr 26 01:37:54 BST 2005org.hibernate.mapping

UnionSubclass

public class UnionSubclass extends Subclass implements TableOwner
A subclass in a table-per-concrete-class mapping
author
Gavin King

Fields Summary
private Table
table
private KeyValue
key
Constructors Summary
public UnionSubclass(PersistentClass superclass)

		super(superclass);
	
Methods Summary
public java.lang.Objectaccept(PersistentClassVisitor mv)

		return mv.accept(this);
	
public TablegetIdentityTable()

		return getTable();
	
protected java.util.IteratorgetNonDuplicatedPropertyIterator()

		return getPropertyClosureIterator();
	
public java.util.SetgetSynchronizedTables()

		return synchronizedTables;
	
public TablegetTable()

		return table;
	
public voidsetTable(Table table)

		this.table = table;
		getSuperclass().addSubclassTable(table);
	
public voidvalidate(org.hibernate.engine.Mapping mapping)

		super.validate(mapping);
		if ( key!=null && !key.isValid(mapping) ) {
			throw new MappingException(
				"subclass key mapping has wrong number of columns: " +
				getEntityName() +
				" type: " +
				key.getType().getName()
			);
		}