X - The type containing the represented attributeT - The type of the represented attributepublic class EmbeddedAttribute<X,T> extends SingularAttributeImpl<X,T> implements javax.persistence.metamodel.SingularAttribute<X,T>
SingularMapping for embeddable attributes.| Constructor and Description |
|---|
EmbeddedAttribute(IdentifiableTypeImpl<X> declaringType,
EmbeddedIdAttributeMetadata metadata)
Constructor for id type embedded attributes.
|
EmbeddedAttribute(ManagedTypeImpl<X> declaringType,
EmbeddedAttributeMetadata metadata)
Constructor for regular embedded attributes.
|
| Modifier and Type | Method and Description |
|---|---|
AssociationMetadata |
getAssociationOverride(String path)
Returns the association override if one exists for the path.
|
ColumnMetadata |
getAttributeOverride(String path)
Returns the attribute override if one exists for the path.
|
javax.persistence.metamodel.Attribute.PersistentAttributeType |
getPersistentAttributeType() |
EmbeddableTypeImpl<T> |
getType() |
boolean |
isAssociation() |
boolean |
isId() |
boolean |
isOptional() |
boolean |
isVersion() |
T |
newInstance()
Returns a new embeddable instance
|
getBindableJavaType, getBindableType, isCollection, toStringget, getAttributeId, getDeclaringType, getJavaMember, getJavaType, getLocator, getMetadata, getMetamodel, getName, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic EmbeddedAttribute(IdentifiableTypeImpl<X> declaringType, EmbeddedIdAttributeMetadata metadata)
declaringType - the declaring typemetadata - the metadatapublic EmbeddedAttribute(ManagedTypeImpl<X> declaringType, EmbeddedAttributeMetadata metadata)
declaringType - the declaring typemetadata - the metadatapublic AssociationMetadata getAssociationOverride(String path)
path - the pathnullpublic ColumnMetadata getAttributeOverride(String path)
path - the pathnullpublic javax.persistence.metamodel.Attribute.PersistentAttributeType getPersistentAttributeType()
public EmbeddableTypeImpl<T> getType()
public boolean isAssociation()
public boolean isId()
public boolean isOptional()
public boolean isVersion()
public T newInstance()
Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.