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, .List, .Objects, org.hibernate.FetchMode, .MappingException, org.hibernate.annotations.NotFoundAction, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.engine.spi.Mapping, org.hibernate.internal.util.collections.ArrayHelper, org.hibernate.service.ServiceRegistry, org.hibernate.type.EntityType, .Type

A mapping model object representing a many-to-one association.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private PersistentClass
private final MetadataBuildingContext
private NotFoundAction
private String
private final Table

Constructor Summary

AccessConstructor and Description
public
private
OneToMany(OneToMany original)

Method Summary

Modifier and TypeMethod and Description
public Object
public Value
public void
public void
public PersistentClass
public MetadataBuildingContext
public boolean[]
public List<Column>
getColumns()

Implements org.hibernate.mapping.Value.getColumns.

If the mapping involves only columns, return them.
public int
getColumnSpan()

Implements org.hibernate.mapping.Value.getColumnSpan.

The number of columns and formulas in the mapping.
public boolean[]
private EntityType
public FetchMode
public NotFoundAction
public String
public List<Selectable>
getSelectables()

Implements org.hibernate.mapping.Value.getSelectables.

The mapping to columns and formulas.
public ServiceRegistry
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 boolean
public boolean
public boolean
public boolean
public boolean
isValid(Mapping mapping)

Implements org.hibernate.mapping.Value.isValid.

Deprecated as a consequence of Mapping being deprecated.
public void
setAssociatedClass(PersistentClass associatedClass)

Associated entity on the many side

public void
setIgnoreNotFound(boolean ignoreNotFound)

public void
public void
setReferencedEntityName(String referencedEntityName)

Associated entity on the "many" side

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

associatedClassback to summary
private PersistentClass associatedClass
buildingContextback to summary
private final MetadataBuildingContext buildingContext
notFoundActionback to summary
private NotFoundAction notFoundAction
referencedEntityNameback to summary
private String referencedEntityName
referencingTableback to summary
private final Table referencingTable

Constructor Detail

OneToManyback to summary
public OneToMany(MetadataBuildingContext buildingContext, PersistentClass owner) throws MappingException
OneToManyback to summary
private OneToMany(OneToMany original)

Method Detail

acceptback to summary
public Object accept(ValueVisitor visitor)

Implements org.hibernate.mapping.Value.accept.

copyback to summary
public Value copy()

Implements org.hibernate.mapping.Value.copy.

Annotations
@Override
createForeignKeyback to summary
public void createForeignKey()

Implements org.hibernate.mapping.Value.createForeignKey.

createUniqueKeyback to summary
public void createUniqueKey()

Implements org.hibernate.mapping.Value.createUniqueKey.

Annotations
@Override
getAssociatedClassback to summary
public PersistentClass getAssociatedClass()
getBuildingContextback to summary
public MetadataBuildingContext getBuildingContext()

Overrides default org.hibernate.mapping.Value.getBuildingContext.

Annotations
@Override
getColumnInsertabilityback to summary
public boolean[] getColumnInsertability()

Implements org.hibernate.mapping.Value.getColumnInsertability.

getColumnsback to summary
public List<Column> getColumns()

Implements org.hibernate.mapping.Value.getColumns.

Doc from org.hibernate.mapping.Value.getColumns.

If the mapping involves only columns, return them.

Annotations
@Override
getColumnSpanback to summary
public int getColumnSpan()

Implements org.hibernate.mapping.Value.getColumnSpan.

Doc from org.hibernate.mapping.Value.getColumnSpan.

The number of columns and formulas in the mapping.

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.

getNotFoundActionback to summary
public NotFoundAction getNotFoundAction()
getReferencedEntityNameback to summary
public String getReferencedEntityName()
getSelectablesback to summary
public List<Selectable> getSelectables()

Implements org.hibernate.mapping.Value.getSelectables.

Doc from org.hibernate.mapping.Value.getSelectables.

The mapping to columns and formulas.

Annotations
@Override
getServiceRegistryback to summary
public ServiceRegistry getServiceRegistry()

Implements org.hibernate.mapping.Value.getServiceRegistry.

Annotations
@Override
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.

hasAnyInsertableColumnsback to summary
public boolean hasAnyInsertableColumns()

Implements org.hibernate.mapping.Value.hasAnyInsertableColumns.

Annotations
@Override
hasAnyUpdatableColumnsback to summary
public boolean hasAnyUpdatableColumns()

Implements org.hibernate.mapping.Value.hasAnyUpdatableColumns.

Annotations
@Override
hasFormulaback to summary
public boolean hasFormula()

Implements org.hibernate.mapping.Value.hasFormula.

isAlternateUniqueKeyback to summary
public boolean isAlternateUniqueKey()

Implements org.hibernate.mapping.Value.isAlternateUniqueKey.

isColumnInsertableback to summary
public boolean isColumnInsertable(int index)

Implements org.hibernate.mapping.Value.isColumnInsertable.

Annotations
@Override
isColumnUpdateableback to summary
public boolean isColumnUpdateable(int index)

Implements org.hibernate.mapping.Value.isColumnUpdateable.

Annotations
@Override
isIgnoreNotFoundback to summary
public boolean isIgnoreNotFound()
isNullableback to summary
public boolean isNullable()

Implements org.hibernate.mapping.Value.isNullable.

isSameback to summary
public boolean isSame(Value other)

Implements org.hibernate.mapping.Value.isSame.

Annotations
@Override
isSameback to summary
public boolean isSame(OneToMany other)
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.

Deprecated

as a consequence of Mapping being deprecated. See corresponding docs for further information.

setAssociatedClassback to summary
public void setAssociatedClass(PersistentClass associatedClass)

Associated entity on the many side

setIgnoreNotFoundback to summary
public void setIgnoreNotFound(boolean ignoreNotFound)
setNotFoundActionback to summary
public void setNotFoundAction(NotFoundAction notFoundAction)
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.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override