-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Attribute
Attribute.PersistentAttributeType
-
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Bindable
Bindable.BindableType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Type<T>
getType()
Return the type that represents the type of the attribute.boolean
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.boolean
isOptional()
Can the attribute be null?boolean
isVersion()
Is the attribute a version attribute?-
Methods inherited from interface jakarta.persistence.metamodel.Attribute
getDeclaringType, getJavaMember, getJavaType, getName, getPersistentAttributeType, isAssociation, isCollection
-
Methods inherited from interface jakarta.persistence.metamodel.Bindable
getBindableJavaType, getBindableType
-
-
-
-
Method Detail
-
isId
boolean 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
-
isVersion
boolean isVersion()
Is the attribute a version attribute?- Returns:
- boolean indicating whether the attribute is a version attribute
-
isOptional
boolean isOptional()
Can the attribute be null?- Returns:
- boolean indicating whether the attribute can be null
- See Also:
Basic.optional()
-
-