Using enum property as ormlite column value instead of ordinal. is it possible?
@DatabaseField(dataType=DataType.ENUM_STRING,columnName=TIPO_FIELD_NAME) private TipoPedido tipo; public enum TipoPedido { REGISTARNOTIFICACAORESPOSTA("Registar Notificação Resposta",SIGLA_TIPO_REGISTARNOTIFICATIORESPOSTA); private String tipoName; private String tipoValue; TipoPedido(String tipoName,String tipoValue){ this.tipoName=tipoName; this.tipoValue=tipoValue; } public String getTipoName(){ return tipoName; } public String getTipoValue(){ return tipoValue; } } Is it possible to use the tipoValue enum property as the value for the column instead of the ordinal? Edit:here's what i did: