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_ENTIDAD"
)
@NamedQueries({@NamedQuery(
name = "TipoEntidad.findAll",
query = "SELECT t FROM TipoEntidad t"
), @NamedQuery(
name = "TipoEntidad.findByTentidadIdn",
query = "SELECT t FROM TipoEntidad t WHERE t.tentidadIdn = :tentidadIdn"
), @NamedQuery(
name = "TipoEntidad.findByTentidadDescrip",
query = "SELECT t FROM TipoEntidad t WHERE t.tentidadDescrip = :tentidadDescrip"
)})
public class TipoEntidad implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Basic(
optional = false
)
@Column(
name = "TENTIDAD_IDN"
)
private Short tentidadIdn;
@Column(
name = "TENTIDAD_DESCRIP"
)
private String tentidadDescrip;
@OneToMany(
cascade = {CascadeType.ALL},
mappedBy = "tipoEntidad"
)
private List tipoDeOperacionList;
public TipoEntidad() {
}
public TipoEntidad(Short tentidadIdn) {
this.tentidadIdn = tentidadIdn;
}
public Short getTentidadIdn() {
return this.tentidadIdn;
}
public void setTentidadIdn(Short tentidadIdn) {
this.tentidadIdn = tentidadIdn;
}
public String getTentidadDescrip() {
return this.tentidadDescrip;
}
public void setTentidadDescrip(String tentidadDescrip) {
this.tentidadDescrip = tentidadDescrip;
}
public List getTipoDeOperacionList() {
return this.tipoDeOperacionList;
}
public void setTipoDeOperacionList(List tipoDeOperacionList) {
this.tipoDeOperacionList = tipoDeOperacionList;
}
public int hashCode() {
byte hash = 0;
int hash1 = hash + (this.tentidadIdn != null?this.tentidadIdn.hashCode():0);
return hash1;
}
public boolean equals(Object object) {
if(!(object instanceof TipoEntidad)) {
return false;
} else {
TipoEntidad other = (TipoEntidad)object;
return (this.tentidadIdn != null || other.tentidadIdn == null) && (this.tentidadIdn == null || this.tentidadIdn.equals(other.tentidadIdn));
}
}
public String toString() {
return "mx.com.bcm.banamex.ae.persistencia.modelo.TipoEntidad[tentidadIdn=" + this.tentidadIdn + "]";
}
}