Red Hat Application Migration Toolkit
package mx.com.bcm.banamex.ae.persistencia.modelo;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
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;
@Entity
@Table(
name = "TIPO_MOVIMIENTO"
)
@NamedQueries({@NamedQuery(
name = "TipoMovimiento.findAll",
query = "SELECT t FROM TipoMovimiento t"
), @NamedQuery(
name = "TipoMovimiento.findByTipomovIdn",
query = "SELECT t FROM TipoMovimiento t WHERE t.tipomovIdn = :tipomovIdn"
), @NamedQuery(
name = "TipoMovimiento.findByTipomovDescripcion",
query = "SELECT t FROM TipoMovimiento t WHERE t.tipomovDescripcion = :tipomovDescripcion"
)})
public class TipoMovimiento implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Basic(
optional = false
)
@Column(
name = "TIPOMOV_IDN"
)
private Short tipomovIdn;
@Column(
name = "TIPOMOV_DESCRIPCION"
)
private String tipomovDescripcion;
@OneToMany(
cascade = {CascadeType.ALL},
mappedBy = "tipoMovimiento"
)
private List detalleInterfaceProcesadoraList;
public TipoMovimiento() {
}
public TipoMovimiento(Short tipomovIdn) {
this.tipomovIdn = tipomovIdn;
}
public Short getTipomovIdn() {
return this.tipomovIdn;
}
public void setTipomovIdn(Short tipomovIdn) {
this.tipomovIdn = tipomovIdn;
}
public String getTipomovDescripcion() {
return this.tipomovDescripcion;
}
public void setTipomovDescripcion(String tipomovDescripcion) {
this.tipomovDescripcion = tipomovDescripcion;
}
public List getDetalleInterfaceProcesadoraList() {
return this.detalleInterfaceProcesadoraList;
}
public void setDetalleInterfaceProcesadoraList(List detalleInterfaceProcesadoraList) {
this.detalleInterfaceProcesadoraList = detalleInterfaceProcesadoraList;
}
public int hashCode() {
byte hash = 0;
int hash1 = hash + (this.tipomovIdn != null?this.tipomovIdn.hashCode():0);
return hash1;
}
public boolean equals(Object object) {
if(!(object instanceof TipoMovimiento)) {
return false;
} else {
TipoMovimiento other = (TipoMovimiento)object;
return (this.tipomovIdn != null || other.tipomovIdn == null) && (this.tipomovIdn == null || this.tipomovIdn.equals(other.tipomovIdn));
}
}
public String toString() {
return "mx.com.bcm.banamex.ae.persistencia.modelo.TipoMovimiento[tipomovIdn=" + this.tipomovIdn + "]";
}
}