Red Hat Application Migration Toolkit
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.AgrupadorAeweb; import mx.com.bcm.banamex.ae.persistencia.modelo.CatGeneralAewebPK; @Entity @Table( name = "CAT_GENERAL_AEWEB" ) @NamedQueries({@NamedQuery( name = "CatGeneralAeweb.findAll", query = "SELECT c FROM CatGeneralAeweb c" ), @NamedQuery( name = "CatGeneralAeweb.findByAgrupadorIdn", query = "SELECT c FROM CatGeneralAeweb c WHERE c.catGeneralAewebPK.agrupadorIdn = :agrupadorIdn" ), @NamedQuery( name = "CatGeneralAeweb.findByAewebcatgralIdn", query = "SELECT c FROM CatGeneralAeweb c WHERE c.catGeneralAewebPK.aewebcatgralIdn = :aewebcatgralIdn" ), @NamedQuery( name = "CatGeneralAeweb.findByAewebcatgralDescripcion", query = "SELECT c FROM CatGeneralAeweb c WHERE c.aewebcatgralDescripcion = :aewebcatgralDescripcion" )}) public class CatGeneralAeweb implements Serializable { private static final long serialVersionUID = 1L; @EmbeddedId protected CatGeneralAewebPK catGeneralAewebPK; @Column( name = "AEWEBCATGRAL_DESCRIPCION" ) private String aewebcatgralDescripcion; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List movimientosS711List; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List movimientosS500List; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List subBovedaList; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List cajaHabilitadaPorTurnoList; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List cajaList; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List envaseList; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List comprobanteList; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List solicitudDotacionList; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb1" ) private List solicitudDotacionList1; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List transferenciaList; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List fichaDepositoList; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List movimientosS018List; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List movimientosS019List; @JoinColumn( name = "AGRUPADOR_IDN", referencedColumnName = "AGRUPADOR_IDN", insertable = false, updatable = false ) @ManyToOne( optional = false ) private AgrupadorAeweb agrupadorAeweb; @OneToMany( cascade = {CascadeType.ALL}, mappedBy = "catGeneralAeweb" ) private List corteList; public CatGeneralAeweb() { } public CatGeneralAeweb(CatGeneralAewebPK catGeneralAewebPK) { this.catGeneralAewebPK = catGeneralAewebPK; } public CatGeneralAeweb(short agrupadorIdn, short aewebcatgralIdn) { this.catGeneralAewebPK = new CatGeneralAewebPK(agrupadorIdn, aewebcatgralIdn); } public CatGeneralAewebPK getCatGeneralAewebPK() { return this.catGeneralAewebPK; } public void setCatGeneralAewebPK(CatGeneralAewebPK catGeneralAewebPK) { this.catGeneralAewebPK = catGeneralAewebPK; } public String getAewebcatgralDescripcion() { return this.aewebcatgralDescripcion; } public void setAewebcatgralDescripcion(String aewebcatgralDescripcion) { this.aewebcatgralDescripcion = aewebcatgralDescripcion; } public List getMovimientosS711List() { return this.movimientosS711List; } public void setMovimientosS711List(List movimientosS711List) { this.movimientosS711List = movimientosS711List; } public List getMovimientosS500List() { return this.movimientosS500List; } public void setMovimientosS500List(List movimientosS500List) { this.movimientosS500List = movimientosS500List; } public List getSubBovedaList() { return this.subBovedaList; } public void setSubBovedaList(List subBovedaList) { this.subBovedaList = subBovedaList; } public List getCajaHabilitadaPorTurnoList() { return this.cajaHabilitadaPorTurnoList; } public void setCajaHabilitadaPorTurnoList(List cajaHabilitadaPorTurnoList) { this.cajaHabilitadaPorTurnoList = cajaHabilitadaPorTurnoList; } public List getCajaList() { return this.cajaList; } public void setCajaList(List cajaList) { this.cajaList = cajaList; } public List getEnvaseList() { return this.envaseList; } public void setEnvaseList(List envaseList) { this.envaseList = envaseList; } public List getComprobanteList() { return this.comprobanteList; } public void setComprobanteList(List comprobanteList) { this.comprobanteList = comprobanteList; } public List getSolicitudDotacionList() { return this.solicitudDotacionList; } public void setSolicitudDotacionList(List solicitudDotacionList) { this.solicitudDotacionList = solicitudDotacionList; } public List getSolicitudDotacionList1() { return this.solicitudDotacionList1; } public void setSolicitudDotacionList1(List solicitudDotacionList1) { this.solicitudDotacionList1 = solicitudDotacionList1; } public List getTransferenciaList() { return this.transferenciaList; } public void setTransferenciaList(List transferenciaList) { this.transferenciaList = transferenciaList; } public List getFichaDepositoList() { return this.fichaDepositoList; } public void setFichaDepositoList(List fichaDepositoList) { this.fichaDepositoList = fichaDepositoList; } public List getMovimientosS018List() { return this.movimientosS018List; } public void setMovimientosS018List(List movimientosS018List) { this.movimientosS018List = movimientosS018List; } public List getMovimientosS019List() { return this.movimientosS019List; } public void setMovimientosS019List(List movimientosS019List) { this.movimientosS019List = movimientosS019List; } public AgrupadorAeweb getAgrupadorAeweb() { return this.agrupadorAeweb; } public void setAgrupadorAeweb(AgrupadorAeweb agrupadorAeweb) { this.agrupadorAeweb = agrupadorAeweb; } public List getCorteList() { return this.corteList; } public void setCorteList(List corteList) { this.corteList = corteList; } public int hashCode() { byte hash = 0; int hash1 = hash + (this.catGeneralAewebPK != null?this.catGeneralAewebPK.hashCode():0); return hash1; } public boolean equals(Object object) { if(!(object instanceof CatGeneralAeweb)) { return false; } else { CatGeneralAeweb other = (CatGeneralAeweb)object; return (this.catGeneralAewebPK != null || other.catGeneralAewebPK == null) && (this.catGeneralAewebPK == null || this.catGeneralAewebPK.equals(other.catGeneralAewebPK)); } } public String toString() { return "mx.com.bcm.banamex.ae.persistencia.modelo.CatGeneralAeweb[catGeneralAewebPK=" + this.catGeneralAewebPK + "]"; } }