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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

wso2esb - How to concatenate JSON array values in WSO2 ESB? -