Red Hat Application Migration Toolkit
package mx.com.bcm.banamex.ae.persistencia.modelo;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
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.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
@Entity
@Table(
name = "FECHA_CONTABLE"
)
@NamedQueries({@NamedQuery(
name = "FechaContable.findAll",
query = "SELECT f FROM FechaContable f"
), @NamedQuery(
name = "FechaContable.findByFeccontIdn",
query = "SELECT f FROM FechaContable f WHERE f.feccontIdn = :feccontIdn"
), @NamedQuery(
name = "FechaContable.findByFeccontStatus",
query = "SELECT f FROM FechaContable f WHERE f.feccontStatus = :feccontStatus"
)})
public class FechaContable implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Basic(
optional = false
)
@Column(
name = "FECCONT_IDN"
)
@Temporal(TemporalType.TIMESTAMP)
private Date feccontIdn;
@Column(
name = "FECCONT_STATUS"
)
private String feccontStatus;
@OneToMany(
mappedBy = "feccontIdn"
)
private List histTurnoEnOperacionList;
public FechaContable() {
}
public FechaContable(Date feccontIdn) {
this.feccontIdn = feccontIdn;
}
public Date getFeccontIdn() {
return this.feccontIdn;
}
public void setFeccontIdn(Date feccontIdn) {
this.feccontIdn = feccontIdn;
}
public String getFeccontStatus() {
return this.feccontStatus;
}
public void setFeccontStatus(String feccontStatus) {
this.feccontStatus = feccontStatus;
}
public List getHistTurnoEnOperacionList() {
return this.histTurnoEnOperacionList;
}
public void setHistTurnoEnOperacionList(List histTurnoEnOperacionList) {
this.histTurnoEnOperacionList = histTurnoEnOperacionList;
}
public int hashCode() {
byte hash = 0;
int hash1 = hash + (this.feccontIdn != null?this.feccontIdn.hashCode():0);
return hash1;
}
public boolean equals(Object object) {
if(!(object instanceof FechaContable)) {
return false;
} else {
FechaContable other = (FechaContable)object;
return (this.feccontIdn != null || other.feccontIdn == null) && (this.feccontIdn == null || this.feccontIdn.equals(other.feccontIdn));
}
}
public String toString() {
return "mx.com.bcm.banamex.ae.persistencia.modelo.FechaContable[feccontIdn=" + this.feccontIdn + "]";
}
}