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

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

Field Summary

Modifier and TypeField and Description
private PersistentClass
private final MetadataImplementor
private NotFoundAction
private String
private final Table
referencingTable

Deprecated as a consequence of Table being deprecated.

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

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

Implements org.hibernate.mapping.Value.getTable.

Deprecated as a consequence of Table being deprecated.
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 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
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

associatedClassback to summary
private PersistentClass associatedClass
metadataback to summary
private final MetadataImplementor metadata
notFoundActionback to summary
private NotFoundAction notFoundAction
referencedEntityNameback to summary
private String referencedEntityName
referencingTableback to summary
private final Table referencingTable

Deprecated

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

Constructor Detail

OneToManyback to summary
public OneToMany(MetadataImplementor metadata, PersistentClass owner) throws MappingException
Annotations
@Deprecated
OneToManyback to summary
public OneToMany(MetadataBuildingContext buildingContext, 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<Selectable> 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.

getNotFoundActionback to summary
public NotFoundAction getNotFoundAction()
getReferencedEntityNameback to summary
public String getReferencedEntityName()
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.

Deprecated

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

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.

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.

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.