FileDocCategorySizeDatePackage
JoinedSubclass.javaAPI DocHibernate 3.2.51215Wed Jul 20 20:11:52 BST 2005org.hibernate.mapping

JoinedSubclass

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

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

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

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

		return key;
	
public java.util.IteratorgetReferenceablePropertyIterator()

		return getPropertyIterator();
	
public TablegetTable()

		return table;
	
public voidsetKey(KeyValue key)

		this.key = key;
	
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()
				);
		}