Jakarta Persistence (JPA) Interface

jakarta.persistence.metamodel.Attribute<X,Y>

Type Parameters:
<Y> - The type of the represented attribute
<X> - The represented type that contains the attribute

Represents an attribute of a Java type.
Since:
Jakarta Persistence (JPA) 2.0

Public Instance Methods

Return the managed type representing the type in which the attribute was declared.
Returns:
declaring type.
Since:
Jakarta Persistence (JPA) 1.0
Member getJavaMember ()
Return the Member for the represented attribute.
Returns:
corresponding Member .
Since:
Jakarta Persistence (JPA) 1.0
Class<Y> getJavaType ()
Return the Java type of the represented attribute.
Returns:
Java type.
Since:
Jakarta Persistence (JPA) 1.0
String getName ()
Return the name of the attribute.
Returns:
name.
Since:
Jakarta Persistence (JPA) 1.0
Return the persistent attribute type for the attribute.
Returns:
persistent attribute type.
Since:
Jakarta Persistence (JPA) 1.0
boolean isAssociation ()
Is the attribute an association.
Returns:
boolean indicating whether the attribute corresponds to an association.
Since:
Jakarta Persistence (JPA) 1.0
boolean isCollection ()
Is the attribute collection-valued (represents a Collection , Set , List , or Map ).
Returns:
boolean indicating whether the attribute is collection-valued.
Since:
Jakarta Persistence (JPA) 1.0