I created a Enum
that has a description field for each of your items.
In my report in Jaspersoft Studio
I want to print this description field and not name()
of Enum
.
I created a field in the report, but when selecting the class type my Enum
does not appear, so you can not select the .getDescricao()
.
public enum Direcao {
ENTRADA("Entrada"),
SAIDA("Saída");
private final String descricao;
Direcao(String descricao) {
this.descricao = descricao;
}
public String getDescricao() {
return descricao;
}
}