I have a enum clas like this.
public static enum Industries {
A("Apparel"),
B("Bags"),
C("Clothes"),
D("Diapers");
private String value;
Industries(String val){
this.value = val ;
}
public String getValue(){
return value;
}
}
The enum values are show in a combo box on front end. If Clothes is selected, C is stored in the db.
In another search form, when I execute some sql query, the value C is returned for industries. I want to use the value C, to get values'clothes' to be shown instead of C.
If bags was selected in combo box, I want bags to be shown in search form results instead of B. How do i do it?