Red Hat Application Migration Toolkit
package mx.com.bcm.banamex.ae.persistencia.modelo;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
@Entity
@Table(
name = "DIAS_INHABILES"
)
@NamedQueries({@NamedQuery(
name = "DiasInhabiles.findAll",
query = "SELECT d FROM DiasInhabiles d"
), @NamedQuery(
name = "DiasInhabiles.findByDdDfestivo",
query = "SELECT d FROM DiasInhabiles d WHERE d.ddDfestivo = :ddDfestivo"
), @NamedQuery(
name = "DiasInhabiles.findByDdTipocal",
query = "SELECT d FROM DiasInhabiles d WHERE d.ddTipocal = :ddTipocal"
)})
public class DiasInhabiles implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Basic(
optional = false
)
@Column(
name = "DD_DFESTIVO"
)
@Temporal(TemporalType.TIMESTAMP)
private Date ddDfestivo;
@Column(
name = "DD_TIPOCAL"
)
private String ddTipocal;
public DiasInhabiles() {
}
public DiasInhabiles(Date ddDfestivo) {
this.ddDfestivo = ddDfestivo;
}
public Date getDdDfestivo() {
return this.ddDfestivo;
}
public void setDdDfestivo(Date ddDfestivo) {
this.ddDfestivo = ddDfestivo;
}
public String getDdTipocal() {
return this.ddTipocal;
}
public void setDdTipocal(String ddTipocal) {
this.ddTipocal = ddTipocal;
}
public int hashCode() {
byte hash = 0;
int hash1 = hash + (this.ddDfestivo != null?this.ddDfestivo.hashCode():0);
return hash1;
}
public boolean equals(Object object) {
if(!(object instanceof DiasInhabiles)) {
return false;
} else {
DiasInhabiles other = (DiasInhabiles)object;
return (this.ddDfestivo != null || other.ddDfestivo == null) && (this.ddDfestivo == null || this.ddDfestivo.equals(other.ddDfestivo));
}
}
public String toString() {
return "mx.com.bcm.banamex.ae.persistencia.modelo.DiasInhabiles[ddDfestivo=" + this.ddDfestivo + "]";
}
}