public class OneToOneAttributeMetadataImpl extends AssociationAttributeMetadataImpl implements OneToOneAttributeMetadata
OneToOneAttributeMetadata.| Constructor and Description |
|---|
OneToOneAttributeMetadataImpl(Member member,
OneToOneAttributeMetadata metadata) |
OneToOneAttributeMetadataImpl(Member member,
String name,
javax.persistence.OneToOne oneToOne,
Set<Class<? extends Annotation>> parsed) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMappedBy()
Returns the name of the bidirectional owner association attribute.
|
String |
getMapsId()
Returns the maps id.
|
List<PrimaryKeyJoinColumnMetadata> |
getPrimaryKeyJoinColumns()
Returns the primary key join columns definition of the one to one attribute.
|
boolean |
isId()
Returns if the attribute is an id attribute.
|
boolean |
isOptional()
Returns if the association attribute is optional.
|
boolean |
removesOrphans()
Returns if the orphaned entities of the association attribute is removed.
|
getCascades, getFetchStrategy, getFetchType, getJoinColumns, getJoinTable, getMaxFetchDepth, getTargetEntity, handleId, handleMapKey, handleMapKeyClassName, handleMapKeyColumn, handleMapKeyEnumType, handleMapKeyTemporalType, handleMapsId, handleOrderBy, handleOrderColumngetAccess, getLocator, getMember, getName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCascades, getFetchStrategy, getFetchType, getMaxFetchDepth, getTargetEntitygetAccessgetJoinColumns, getJoinTablegetNamegetLocatorpublic OneToOneAttributeMetadataImpl(Member member, OneToOneAttributeMetadata metadata)
member - the java member of one-to-one attributemetadata - the metadata definition of the one-to-one attributepublic OneToOneAttributeMetadataImpl(Member member, String name, javax.persistence.OneToOne oneToOne, Set<Class<? extends Annotation>> parsed)
member - the java member of attributename - the name of the attributeoneToOne - the annotationparsed - set of annotations parsedpublic String getMappedBy()
getMappedBy in interface MappableAssociationAttributeMetadatapublic String getMapsId()
getMapsId in interface OptionalAssociationAttributeMetadatapublic List<PrimaryKeyJoinColumnMetadata> getPrimaryKeyJoinColumns()
getPrimaryKeyJoinColumns in interface OneToOneAttributeMetadatapublic boolean isId()
isId in interface OptionalAssociationAttributeMetadatapublic boolean isOptional()
isOptional in interface OptionalAssociationAttributeMetadatapublic boolean removesOrphans()
removesOrphans in interface OrphanableAssociationAttributeMetadataCopyright © 2012-2013 Batoo. All Rights Reserved.