title: enum value to constructor class JAVA
body: <p>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 </p>
  
  <pre><code>public class HorariosBean {
      private Integer idHorario;
      private String dia;
      private Integer hora;
      private enum estado {DISPONIBLE, NODISPONIBLE};
      private Integer depasId;
  
      // this is the first thing I fix for pass the enum
      public HorariosBean(Integer idHorario, String dia, Integer hora, estado estate, Integer depasId) {
          this.idHorario = idHorario;
          this.dia = dia;
          this.hora= hora;
          this.estado = estate; //error is here says "estado cannot be resolved or is not a field"
          this.depasId = depasId;
      }
  }
  </code></pre>
  
  <p>I cannot change the type cuz I have other tables with enums so that implies I should change everything</p>