SingularAttribute
- Type Parameters:
<X>- The type containing the represented attribute<T>- The type of the represented attribute
- Super Interfaces:
Attribute<X,T>,Bindable<T>
Instances of the type
SingularAttribute represents persistent single-valued properties or fields. - Since:
- JPA 2.0
Public Methods
Class<T> getBindableJavaType()
If the bindable type of the object is
PLURAL_ATTRIBUTE, the Java element type is returned. If the bindable type is SINGULAR_ATTRIBUTE or ENTITY_TYPE, the Java type of the represented entity or attribute is returned. - Return:
- Java type
- Inherited from:
Bindable<T>
- Since:
- JPA 2.0
boolean isId()
- Return:
- boolean indicating whether the attribute is an id
- Since:
- JPA 2.0
boolean isOptional()
boolean isVersion()
- Return:
- boolean indicating whether the attribute is a version attribute
- Since:
- JPA 2.0