kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | bfcc7c8134a21d6246d7b10264d8f865402fb8ee53f10bbf99d242a77c049971 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2014-10-20 16:01 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2014-10-23 11:00 +02:00 |
| Parents | a2cee34f1f76 |
1 file changed
modified driver-mapping/src/main/java/com/datastax/driver/mapping/EnumType.java +6 −1
| @@ -19,7 +19,12 @@ | ||
| 19 | 19 | * The types of way to persist a JAVA Enum. |
| 20 | 20 | */ |
| 21 | 21 | public enum EnumType { |
| 22 | - /** Persists enumeration values using their ordinal in the Enum declaration. */ | |
| 22 | + /** | |
| 23 | + * Persists enumeration values using their ordinal in the Enum declaration. | |
| 24 | + * <p> | |
| 25 | + * Note that this relies on the order of the values in source code, and will change | |
| 26 | + * if values are added/removed before existing ones. | |
| 27 | + */ | |
| 23 | 28 | ORDINAL, |
| 24 | 29 | /** Persists enumeration values using the string they have been declared with. */ |
| 25 | 30 | STRING |