java - Wrong column type Hibernate -
i have enum , want store integer in database. put annotation @enumerated(value=enumtype.ordinal) @ attribute , start application hibernate.validate. says following:
wrong column type in administation column job. found: int, expected: varchar(255)
does have clue why that?
edit
my enum looks following:
public enum jobenum { private int value; private string name; private string description; private string classname; private boolean unique; private jobenum(int value, string name, string description, string classname, boolean unique) { this.name = name; this.description = description; this.classname = classname; this.unique = unique; this.value = value; } }
and of course has getters values.
my table named administration , has column job of type integer , can null.
Comments
Post a Comment