public class OneToOne extends ToOne
referencedPropertyName, referenceToPrimaryKey, unwrapProxyDEFAULT_ID_GEN_STRATEGY| Constructor and Description | 
|---|
OneToOne(Mappings mappings,
        Table table,
        PersistentClass owner)  | 
| Modifier and Type | Method and Description | 
|---|---|
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)  | 
getFetchMode, getReferencedEntityName, getReferencedPropertyName, isEmbedded, isLazy, isReferenceToPrimaryKey, isTypeSpecified, isUnwrapProxy, isValid, setEmbedded, setFetchMode, setLazy, setReferencedEntityName, setReferencedPropertyName, setReferenceToPrimaryKey, setTypeUsingReflection, setUnwrapProxyaddColumn, addFormula, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMappings, getNullValue, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isNationalized, isSimpleValue, isUpdateable, makeNationalized, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDefinition, setNullValue, setTable, setTypeName, setTypeParameters, toStringpublic OneToOne(Mappings mappings, Table table, PersistentClass owner) throws MappingException
MappingExceptionpublic String getPropertyName()
public void setPropertyName(String propertyName)
public String getEntityName()
public void setEntityName(String propertyName)
public Type getType() throws MappingException
getType in interface ValuegetType in class ToOneMappingExceptionpublic void createForeignKey()
                      throws MappingException
createForeignKey in interface ValuecreateForeignKey in class ToOneMappingExceptionpublic List getConstraintColumns()
getConstraintColumns in class SimpleValuepublic boolean isConstrained()
public ForeignKeyDirection getForeignKeyType()
public KeyValue getIdentifier()
public void setConstrained(boolean constrained)
constrained - The constrained to setpublic void setForeignKeyType(ForeignKeyDirection foreignKeyType)
foreignKeyType - The foreignKeyType to setpublic void setIdentifier(KeyValue identifier)
identifier - The identifier to setpublic boolean isNullable()
isNullable in interface ValueisNullable in class SimpleValueCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.