mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
#2120 - DbEnumValue without database constraint
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user