Top Description Fields Constructors Methods
org.hibernate.mapping

public Class OneToMany

extends Object
implements Value
Class Inheritance
All Implemented Interfaces
org.hibernate.mapping.Value, java.io.Serializable
Imports
java.util.Iterator, org.hibernate.FetchMode, .MappingException, org.hibernate.cfg.Mappings, org.hibernate.engine.Mapping, org.hibernate.type.EntityType, .Type, .TypeFactory

A mapping for a one-to-many association
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private PersistentClass
private boolean
private boolean
private final Mappings
private String
private final Table

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
public void
public PersistentClass
public boolean[]
public Iterator<E>
public int
public boolean[]
private EntityType
public FetchMode
public String
public Table
getTable()

Implements org.hibernate.mapping.Value.getTable.

Table of the owner entity (the "one" side)
public Type
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public void
setAssociatedClass(PersistentClass associatedClass)

Associated entity on the many side

public void
setEmbedded(boolean embedded)

public void
setIgnoreNotFound(boolean ignoreNotFound)

public void
setReferencedEntityName(String referencedEntityName)

Associated entity on the "many" side

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

associatedClassback to summary
private PersistentClass associatedClass
embeddedback to summary
private boolean embedded
ignoreNotFoundback to summary
private boolean ignoreNotFound
mappingsback to summary
private final Mappings mappings
referencedEntityNameback to summary
private String referencedEntityName
referencingTableback to summary
private final Table referencingTable

Constructor Detail

OneToManyback to summary
public OneToMany(Mappings mappings, PersistentClass owner) throws MappingException

Method Detail

acceptback to summary
public Object accept(ValueVisitor visitor)

Implements org.hibernate.mapping.Value.accept.

createForeignKeyback to summary
public void createForeignKey()

Implements org.hibernate.mapping.Value.createForeignKey.

getAssociatedClassback to summary
public PersistentClass getAssociatedClass()
getColumnInsertabilityback to summary
public boolean[] getColumnInsertability()

Implements org.hibernate.mapping.Value.getColumnInsertability.

getColumnIteratorback to summary
public Iterator<E> getColumnIterator()

Implements org.hibernate.mapping.Value.getColumnIterator.

getColumnSpanback to summary
public int getColumnSpan()

Implements org.hibernate.mapping.Value.getColumnSpan.

getColumnUpdateabilityback to summary
public boolean[] getColumnUpdateability()

Implements org.hibernate.mapping.Value.getColumnUpdateability.

getEntityTypeback to summary
private EntityType getEntityType()
getFetchModeback to summary
public FetchMode getFetchMode()

Implements org.hibernate.mapping.Value.getFetchMode.

getReferencedEntityNameback to summary
public String getReferencedEntityName()
getTableback to summary
public Table getTable()

Implements org.hibernate.mapping.Value.getTable.

Table of the owner entity (the "one" side)

getTypeback to summary
public Type getType()

Implements org.hibernate.mapping.Value.getType.

hasFormulaback to summary
public boolean hasFormula()

Implements org.hibernate.mapping.Value.hasFormula.

isAlternateUniqueKeyback to summary
public boolean isAlternateUniqueKey()

Implements org.hibernate.mapping.Value.isAlternateUniqueKey.

isEmbeddedback to summary
public boolean isEmbedded()
isIgnoreNotFoundback to summary
public boolean isIgnoreNotFound()
isNullableback to summary
public boolean isNullable()

Implements org.hibernate.mapping.Value.isNullable.

isSimpleValueback to summary
public boolean isSimpleValue()

Implements org.hibernate.mapping.Value.isSimpleValue.

isValidback to summary
public boolean isValid(Mapping mapping) throws MappingException

Implements org.hibernate.mapping.Value.isValid.

setAssociatedClassback to summary
public void setAssociatedClass(PersistentClass associatedClass)

Associated entity on the many side

setEmbeddedback to summary
public void setEmbedded(boolean embedded)
setIgnoreNotFoundback to summary
public void setIgnoreNotFound(boolean ignoreNotFound)
setReferencedEntityNameback to summary
public void setReferencedEntityName(String referencedEntityName)

Associated entity on the "many" side

setTypeUsingReflectionback to summary
public void setTypeUsingReflection(String className, String propertyName)

Implements org.hibernate.mapping.Value.setTypeUsingReflection.