#2120 - DbEnumValue without database constraint

This commit is contained in:
rob bygrave committed 2020-12-07 21:53:03 +13:00
1 parent dbe273bb56
commit d68f477e8e
5 files changed
+49 -89

No files matched your search

@@ -6,7 +6,7 @@ import io.ebean.annotation.DbEnumValue;
public enum VarcharEnum {
ZERO, ONE, TWO;
@DbEnumValue(storage = DbEnumType.VARCHAR)
@DbEnumValue(storage = DbEnumType.VARCHAR, withConstraint = false)
public String dbValue() {
return "xXx" + name();
}