Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.3.2 (Gosling SR2), 1.4 M1 (Hopper)
-
Fix Version/s: 1.5 M1 (Ingalls)
-
Component/s: None
-
Labels:
-
Last commented by a User:true
-
Pull Request URL:
Description
Mapping of enum types is not supported yet. The mapping converter uses the property data type to determine a converter. The value is not converted into a string or numeric value because the source and target type are the same. Spring Data Cassandra has no built-in support for enums and also @CassandraType annotations are not used while writing an Entity (insert/update/delete).
Example code expected to work:
@Table("book") public class Book { @PrimaryKey private String isbn; private Condition condition; // getter/setter omitted. } public enum Condition { MINT, MHHKAY, NOT_SO_GOOD; }
Attachments
Issue Links
- is depended on by
-
DATACASS-277 Enum mapping using ordinal value
-
- Closed
-
- supersedes
-
DATACASS-141 Support for enumeration mapping
-
- Closed
-