Top Description Methods
org.hibernate.metamodel.internal

public Interface AttributeMetadata<X, Y>

Known Direct Subinterfaces
org.hibernate.metamodel.internal.PluralAttributeMetadata, org.hibernate.metamodel.internal.SingularAttributeMetadata
Known Direct Implementers
org.hibernate.metamodel.internal.BaseAttributeMetadata
Type Parameters
<X>
The attribute owner type
<Y>
The attribute type.
Imports
java.lang.reflect.Member, org.hibernate.mapping.Property, org.hibernate.metamodel.AttributeClassification, org.hibernate.metamodel.model.domain.ManagedDomainType

Basic contract for describing an attribute.

Method Summary

Modifier and TypeMethod and Description
public AttributeClassification
getAttributeClassification()

Get the classification for this attribute

public Class<Y>

Returns:

The java type of the attribute.
getJavaType
()

Retrieve the attribute java type.

public Member

Returns:

The attribute member
getMember
()

Retrieve the member defining the attribute

public String

Returns:

The attribute name
getName
()

Retrieve the name of the attribute

public ManagedDomainType<X>

Returns:

The metamodel information for the attribute owner
getOwnerType
()

Retrieve the attribute owner's metamodel information

public Property

Returns:

The Hibernate property mapping
getPropertyMapping
()

Retrieve the Hibernate property mapping related to this attribute.

public boolean

Returns:

True if it is plural, false otherwise.
isPlural
()

Is the attribute plural (a collection)?

Method Detail

getAttributeClassificationback to summary
public AttributeClassification getAttributeClassification()

Get the classification for this attribute

getJavaTypeback to summary
public Class<Y> getJavaType()

Retrieve the attribute java type.

Returns:Class<Y>

The java type of the attribute.

getMemberback to summary
public Member getMember()

Retrieve the member defining the attribute

Returns:Member

The attribute member

getNameback to summary
public String getName()

Retrieve the name of the attribute

Returns:String

The attribute name

getOwnerTypeback to summary
public ManagedDomainType<X> getOwnerType()

Retrieve the attribute owner's metamodel information

Returns:ManagedDomainType<X>

The metamodel information for the attribute owner

getPropertyMappingback to summary
public Property getPropertyMapping()

Retrieve the Hibernate property mapping related to this attribute.

Returns:Property

The Hibernate property mapping

isPluralback to summary
public boolean isPlural()

Is the attribute plural (a collection)?

Returns:boolean

True if it is plural, false otherwise.