2
I created a Enum
which has a description field for each of its items.
In my report on Jaspersoft Studio
i want to print this description field and not the name()
of Enum
.
I created a field in the report, but when selecting the class type does not show my Enum
then there is no way to 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;
}
}