private IndicesIntraDiaId getIndicesIntraDiaId(
      int idCarga, java.util.Date dtFecha, String strIndice) {
    IndicesIntraDiaId id = new IndicesIntraDiaId();

    id.setIndice(strIndice);
    id.setFecha(dtFecha);
    id.setIdCarga(idCarga);

    return id;
  }
  public boolean equals(Object other) {
    if ((this == other)) return true;
    if ((other == null)) return false;
    if (!(other instanceof IndicesIntraDiaId)) return false;
    IndicesIntraDiaId castOther = (IndicesIntraDiaId) other;

    return ((this.getFecha() == castOther.getFecha())
            || (this.getFecha() != null
                && castOther.getFecha() != null
                && this.getFecha().equals(castOther.getFecha())))
        && ((this.getIndice() == castOther.getIndice())
            || (this.getIndice() != null
                && castOther.getIndice() != null
                && this.getIndice().equals(castOther.getIndice())))
        && ((this.getIdCarga() == castOther.getIdCarga())
            || (this.getIdCarga() != null
                && castOther.getIdCarga() != null
                && this.getIdCarga().equals(castOther.getIdCarga())));
  }