Information

0
Story Points

Technologies

Decompiled Java File
package mx.com.bcm.banamex.ae.persistencia.modelo;

import java.io.Serializable;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import mx.com.bcm.banamex.ae.persistencia.modelo.TipoDeOperacionPK;
import mx.com.bcm.banamex.ae.persistencia.modelo.TipoEntidad;

@Entity
@Table(
   name = "TIPO_DE_OPERACION"
)
@NamedQueries({@NamedQuery(
   name = "TipoDeOperacion.findAll",
   query = "SELECT t FROM TipoDeOperacion t"
), @NamedQuery(
   name = "TipoDeOperacion.findByTipoperIdn",
   query = "SELECT t FROM TipoDeOperacion t WHERE t.tipoDeOperacionPK.tipoperIdn = :tipoperIdn"
), @NamedQuery(
   name = "TipoDeOperacion.findByTentidadIdn",
   query = "SELECT t FROM TipoDeOperacion t WHERE t.tipoDeOperacionPK.tentidadIdn = :tentidadIdn"
), @NamedQuery(
   name = "TipoDeOperacion.findByTipoperDescrip",
   query = "SELECT t FROM TipoDeOperacion t WHERE t.tipoperDescrip = :tipoperDescrip"
)})
public class TipoDeOperacion implements Serializable {
   private static final long serialVersionUID = 1L;
   @EmbeddedId
   protected TipoDeOperacionPK tipoDeOperacionPK;
   @Column(
      name = "TIPOPER_DESCRIP"
   )
   private String tipoperDescrip;
   @OneToMany(
      cascade = {CascadeType.ALL},
      mappedBy = "tipoDeOperacion"
   )
   private List detalleInterfaceProcesadoraList;
   @OneToMany(
      mappedBy = "tipoDeOperacion"
   )
   private List comprobanteList;
   @JoinColumn(
      name = "TENTIDAD_IDN",
      referencedColumnName = "TENTIDAD_IDN",
      insertable = false,
      updatable = false
   )
   @ManyToOne(
      optional = false
   )
   private TipoEntidad tipoEntidad;

   public TipoDeOperacion() {
   }

   public TipoDeOperacion(TipoDeOperacionPK tipoDeOperacionPK) {
      this.tipoDeOperacionPK = tipoDeOperacionPK;
   }

   public TipoDeOperacion(short tipoperIdn, short tentidadIdn) {
      this.tipoDeOperacionPK = new TipoDeOperacionPK(tipoperIdn, tentidadIdn);
   }

   public TipoDeOperacionPK getTipoDeOperacionPK() {
      return this.tipoDeOperacionPK;
   }

   public void setTipoDeOperacionPK(TipoDeOperacionPK tipoDeOperacionPK) {
      this.tipoDeOperacionPK = tipoDeOperacionPK;
   }

   public String getTipoperDescrip() {
      return this.tipoperDescrip;
   }

   public void setTipoperDescrip(String tipoperDescrip) {
      this.tipoperDescrip = tipoperDescrip;
   }

   public List getDetalleInterfaceProcesadoraList() {
      return this.detalleInterfaceProcesadoraList;
   }

   public void setDetalleInterfaceProcesadoraList(List detalleInterfaceProcesadoraList) {
      this.detalleInterfaceProcesadoraList = detalleInterfaceProcesadoraList;
   }

   public List getComprobanteList() {
      return this.comprobanteList;
   }

   public void setComprobanteList(List comprobanteList) {
      this.comprobanteList = comprobanteList;
   }

   public TipoEntidad getTipoEntidad() {
      return this.tipoEntidad;
   }

   public void setTipoEntidad(TipoEntidad tipoEntidad) {
      this.tipoEntidad = tipoEntidad;
   }

   public int hashCode() {
      byte hash = 0;
      int hash1 = hash + (this.tipoDeOperacionPK != null?this.tipoDeOperacionPK.hashCode():0);
      return hash1;
   }

   public boolean equals(Object object) {
      if(!(object instanceof TipoDeOperacion)) {
         return false;
      } else {
         TipoDeOperacion other = (TipoDeOperacion)object;
         return (this.tipoDeOperacionPK != null || other.tipoDeOperacionPK == null) && (this.tipoDeOperacionPK == null || this.tipoDeOperacionPK.equals(other.tipoDeOperacionPK));
      }
   }

   public String toString() {
      return "mx.com.bcm.banamex.ae.persistencia.modelo.TipoDeOperacion[tipoDeOperacionPK=" + this.tipoDeOperacionPK + "]";
   }
}
Page generated: Oct 19, 2017 2:34:18 PM