public class OneToOne extends ToOne
referencedPropertyName, referenceToPrimaryKey, unwrapProxy
DEFAULT_ID_GEN_STRATEGY
Constructor and Description |
---|
OneToOne(MetadataBuildingContext buildingContext,
Table table,
PersistentClass owner) |
OneToOne(MetadataImplementor metadata,
Table table,
PersistentClass owner)
Deprecated.
|
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() |
boolean |
isSame(OneToOne other) |
boolean |
isSame(ToOne other) |
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, isLazy, isReferenceToPrimaryKey, isSame, isTypeSpecified, isUnwrapProxy, isValid, setFetchMode, setLazy, setReferencedEntityName, setReferencedPropertyName, setReferenceToPrimaryKey, setTypeUsingReflection, setUnwrapProxy
addColumn, addColumn, addFormula, copyTypeFrom, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getForeignKeyDefinition, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMetadata, getNullValue, getServiceRegistry, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isLob, isNationalized, isSame, isSame, isSimpleValue, isUpdateable, isVersion, makeLob, makeNationalized, makeVersion, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyDefinition, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDescriptor, setNullValue, setTable, setTypeName, setTypeParameters, toString
@Deprecated public OneToOne(MetadataImplementor metadata, Table table, PersistentClass owner) throws MappingException
OneToOne(MetadataBuildingContext, Table, PersistentClass)
instead.MappingException
public OneToOne(MetadataBuildingContext buildingContext, Table table, PersistentClass owner) throws MappingException
MappingException
public String getPropertyName()
getPropertyName
in class ToOne
public void setPropertyName(String propertyName)
setPropertyName
in class ToOne
public String getEntityName()
public void setEntityName(String propertyName)
public Type getType() throws MappingException
getType
in interface Value
getType
in class ToOne
MappingException
public void createForeignKey() throws MappingException
createForeignKey
in interface Value
createForeignKey
in class ToOne
MappingException
public List getConstraintColumns()
getConstraintColumns
in class SimpleValue
public 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 Value
isNullable
in class SimpleValue
public Object accept(ValueVisitor visitor)
public boolean isSame(OneToOne other)
Copyright © 2019 JBoss by Red Hat. All rights reserved.