Elffuss BraidHub

kikocis/java-driver public

Add warning comment in EnumType.ORDINAL javadoc (JAVA-488).
Changesetbfcc7c8134a21d6246d7b10264d8f865402fb8ee53f10bbf99d242a77c049971
Authorolim7t <omichallat+github@gmail.com> · 2014-10-20 16:01 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2014-10-23 11:00 +02:00
Parentsa2cee34f1f76

Browse the files at this changeset

1 file changed

modified driver-mapping/src/main/java/com/datastax/driver/mapping/EnumType.java +6 −1
@@ -19,7 +19,12 @@
1919 * The types of way to persist a JAVA Enum.
2020 */
2121 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+ */
2328 ORDINAL,
2429 /** Persists enumeration values using the string they have been declared with. */
2530 STRING