Annotation Interface CassandraType
@Documented
@Retention(RUNTIME)
@Target({TYPE,TYPE_PARAMETER,ANNOTATION_TYPE,FIELD,METHOD,PARAMETER})
public @interface CassandraType
Specifies the Cassandra type of the annotated property or parameter when used in query methods.
- Author:
- Alex Shvid, Matthew T. Adams, Mark Paluch
- See Also:
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionIf the property isCollection-like, then this attribute holds a singleDataType Namerepresenting the element type of theCollection.If the property maps to a User-Defined Type (UDT) then this attribute holds the user type name.
-
Element Details
-
type
CassandraType.Name typeTheCassandraType.Nameof the property.
-
-
-
typeArguments
CassandraType.Name[] typeArgumentsIf the property isCollection-like, then this attribute holds a singleDataType Namerepresenting the element type of theCollection.If the property is a
Map, then this attribute holds exactly twoDataType Names; the first is the key type and the second is the value type.If the property is neither
Collection-likenor aMap, then this attribute is ignored.- Returns:
- an array of
CassandraType.Nameobjects. - See Also:
- Default:
- {}
-
userTypeName
String userTypeNameIf the property maps to a User-Defined Type (UDT) then this attribute holds the user type name. ForCollection-likeproperties the user type name applies to the component type. ForMapproperties,typeArguments()configured toCassandraType.Name.UDTare resolved using the user type name. The user type name is only required if the UDT does not map to a class annotated withUserDefinedType.- Returns:
nameof the user type- Since:
- 1.5
- Default:
- ""
-