Hi there I'm creating the beans of the tables of my database, but I have this little issue that I can't pass the ENUM value to the constructor, I solved it but when I try to set the value It says error; here is my code
public class HorariosBean {
private Integer idHorario;
private String dia;
private Integer hora;
private enum estado {DISPONIBLE, NODISPONIBLE};
private Integer depasId;
public HorariosBean (){
}
public HorariosBean (
Integer idHorario,
String dia,
Integer hora,
estado estate, // this is the first thing I fix for pass the enum
Integer depasId){
this.idHorario = idHorario;
this.dia = dia;
this.hora= hora;
this.estado = estate; //error is here says "estado caot be resolved or is not a field"
this.depasId = depasId;
}
}
I caot change the type cuz I have other tables with enums so that implies I should change everything
