- Type Parameters:
- X- The type containing the represented attribute
- T- The type of the represented attribute
Instances of the type 
SingularAttribute represents persistent
 single-valued properties or fields.- Since:
- 2.0
- 
Nested Class SummaryNested classes/interfaces inherited from interface jakarta.persistence.metamodel.AttributeAttribute.PersistentAttributeTypeNested classes/interfaces inherited from interface jakarta.persistence.metamodel.BindableBindable.BindableType
- 
Method SummaryModifier and TypeMethodDescriptiongetType()Return the type that represents the type of the attribute.booleanisId()Is the attribute an id attribute? This method returns true if the attribute is a simple id, an embedded id, or an attribute of an id class.booleanCan the attribute be null?booleanIs the attribute a version attribute?Methods inherited from interface jakarta.persistence.metamodel.AttributegetDeclaringType, getJavaMember, getJavaType, getName, getPersistentAttributeType, isAssociation, isCollectionMethods inherited from interface jakarta.persistence.metamodel.BindablegetBindableJavaType, getBindableType
- 
Method Details- 
isIdboolean isId()Is the attribute an id attribute? This method returns true if the attribute is a simple id, an embedded id, or an attribute of an id class.- Returns:
- boolean indicating whether the attribute is an id
 
- 
isVersionboolean isVersion()Is the attribute a version attribute?- Returns:
- boolean indicating whether the attribute is a version attribute
 
- 
isOptionalboolean isOptional()Can the attribute be null?- Returns:
- boolean indicating whether the attribute can be null
- See Also:
 
- 
getType
 
-