Top Description Fields Constructors Methods
org.hibernate.mapping

public Class ManyToOne

extends ToOne
Class Inheritance
Imports
java.util.ArrayList, .Iterator, .Map, org.hibernate.MappingException, org.hibernate.annotations.NotFoundAction, org.hibernate.boot.spi.MetadataBuildingContext, .MetadataImplementor, org.hibernate.type.EntityType, .Type

A many-to-one association mapping
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private boolean
private NotFoundAction
Inherited from org.hibernate.mapping.ToOne:
isUnwrapProxyImplicitreferencedPropertyNamereferenceToPrimaryKeyunwrapProxy

Constructor Summary

AccessConstructor and Description
public
public
ManyToOne(MetadataBuildingContext buildingContext, Table table)

Deprecated as a consequence of Table being deprecated.

Method Summary

Modifier and TypeMethod and Description
public Object
public void
public void
createPropertyRefConstraints(Map<K, V> persistentClasses)

public NotFoundAction
public Type
public boolean
public boolean
public void
public void
setIgnoreNotFound(boolean ignoreNotFound)

public void
Inherited from org.hibernate.mapping.ToOne:
getFetchModegetPropertyNamegetReferencedEntityNamegetReferencedPropertyNameisLazyisReferenceToPrimaryKeyisSameisSameisTypeSpecifiedisUnwrapProxyisUnwrapProxyImplicitisValidsetFetchModesetLazysetPropertyNamesetReferencedEntityNamesetReferencedPropertyNamesetReferenceToPrimaryKeysetTypeUsingReflectionsetUnwrapProxysetUnwrapProxyImplicit

Field Detail

isLogicalOneToOneback to summary
private boolean isLogicalOneToOne
notFoundActionback to summary
private NotFoundAction notFoundAction

Constructor Detail

ManyToOneback to summary
public ManyToOne(MetadataImplementor metadata, Table table)
Annotations
@Deprecated
ManyToOneback to summary
public ManyToOne(MetadataBuildingContext buildingContext, Table table)

Deprecated

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

Method Detail

acceptback to summary
public Object accept(ValueVisitor visitor)

Overrides org.hibernate.mapping.ToOne.accept.

Implements org.hibernate.mapping.Value.accept.

createForeignKeyback to summary
public void createForeignKey() throws MappingException

Implements abstract org.hibernate.mapping.ToOne.createForeignKey.

Implements org.hibernate.mapping.Value.createForeignKey.

createPropertyRefConstraintsback to summary
public void createPropertyRefConstraints(Map<K, V> persistentClasses)
getNotFoundActionback to summary
public NotFoundAction getNotFoundAction()
getTypeback to summary
public Type getType() throws MappingException

Implements abstract org.hibernate.mapping.ToOne.getType.

Implements org.hibernate.mapping.Value.getType.

isIgnoreNotFoundback to summary
public boolean isIgnoreNotFound()
isLogicalOneToOneback to summary
public boolean isLogicalOneToOne()
markAsLogicalOneToOneback to summary
public void markAsLogicalOneToOne()
setIgnoreNotFoundback to summary
public void setIgnoreNotFound(boolean ignoreNotFound)
setNotFoundActionback to summary
public void setNotFoundAction(NotFoundAction notFoundAction)