@Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
//        if (!(object instanceof Aula)) {
//            return false;
//        }
//        Aula other = (Aula) object;
//        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
//            return false;
//        }
//        return true;
        
        Aula other = (Aula) object;
        if(this.diaDaSemana == other.diaDaSemana && this.periodo.equals(other.periodo) )
            return true;
        else
            return false; 
    }