public class

OneToOne

extends ToOne
java.lang.Object
   ↳ org.hibernate.mapping.SimpleValue
     ↳ org.hibernate.mapping.ToOne
       ↳ org.hibernate.mapping.OneToOne

Class Overview

A one-to-one association mapping

Summary

[Expand]
Inherited Constants
From class org.hibernate.mapping.SimpleValue
[Expand]
Inherited Fields
From class org.hibernate.mapping.ToOne
Public Constructors
OneToOne(Mappings mappings, Table table, PersistentClass owner)
Public Methods
Object accept(ValueVisitor visitor)
void createForeignKey()
List getConstraintColumns()
String getEntityName()
ForeignKeyDirection getForeignKeyType()
Returns the foreignKeyType.
KeyValue getIdentifier()
Returns the identifier.
String getPropertyName()
Type getType()
boolean isConstrained()
Returns the constrained.
boolean isNullable()
void setConstrained(boolean constrained)
Sets the constrained.
void setEntityName(String propertyName)
void setForeignKeyType(ForeignKeyDirection foreignKeyType)
Sets the foreignKeyType.
void setIdentifier(KeyValue identifier)
Sets the identifier.
void setPropertyName(String propertyName)
[Expand]
Inherited Methods
From class org.hibernate.mapping.ToOne
From class org.hibernate.mapping.SimpleValue
From class java.lang.Object
From interface org.hibernate.mapping.Fetchable
From interface org.hibernate.mapping.KeyValue
From interface org.hibernate.mapping.Value

Public Constructors

public OneToOne (Mappings mappings, Table table, PersistentClass owner)

Public Methods

public Object accept (ValueVisitor visitor)

public void createForeignKey ()

public List getConstraintColumns ()

public String getEntityName ()

public ForeignKeyDirection getForeignKeyType ()

Returns the foreignKeyType.

Returns
  • AssociationType.ForeignKeyType

public KeyValue getIdentifier ()

Returns the identifier.

Returns
  • Value

public String getPropertyName ()

public Type getType ()

public boolean isConstrained ()

Returns the constrained.

Returns
  • boolean

public boolean isNullable ()

public void setConstrained (boolean constrained)

Sets the constrained.

Parameters
constrained The constrained to set

public void setEntityName (String propertyName)

public void setForeignKeyType (ForeignKeyDirection foreignKeyType)

Sets the foreignKeyType.

Parameters
foreignKeyType The foreignKeyType to set

public void setIdentifier (KeyValue identifier)

Sets the identifier.

Parameters
identifier The identifier to set

public void setPropertyName (String propertyName)