Red Hat Application Migration Toolkit
package br.com.impacta.buscadorPotenciaisClientes.orcamento.entity; import java.math.BigInteger; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Lob; import javax.persistence.NamedQuery; import javax.persistence.SequenceGenerator; import javax.persistence.Table; @Entity @Table( name = "acvminfenvcnvxml" ) @NamedQuery( name = "XMLTrafegadosbuscadorPotenciaisClientes.obterXml", query = "SELECT a.dadosXML from XMLTrafegadosbuscadorPotenciaisClientes a where a.codigoTransacaoLog = :codigoTransacao" ) public class XMLTrafegadosBuscadorPotenciaisClientes { public static final String OBTER_XML = "XMLTrafegadosbuscadorPotenciaisClientes.obterXml"; @Id @Column( name = "envinfcod" ) @SequenceGenerator( name = "acvminfenvcnvxml_seq", sequenceName = "acvminfenvcnvxml_seq", allocationSize = 1 ) @GeneratedValue( strategy = GenerationType.SEQUENCE, generator = "acvminfenvcnvxml_seq" ) private Integer codigoInformacaoEnviada; @Column( name = "wbslogtrncod" ) private BigInteger codigoTransacaoLog; @Lob @Basic( fetch = FetchType.LAZY ) @Column( name = "xmlschdad" ) private String dadosXML; public Integer getCodigoInformacaoEnviada() { return this.codigoInformacaoEnviada; } public void setCodigoInformacaoEnviada(Integer codigoInformacaoEnviada) { this.codigoInformacaoEnviada = codigoInformacaoEnviada; } public void setCodigoTransacaoLog(BigInteger codigoTransacaoLog) { this.codigoTransacaoLog = codigoTransacaoLog; } public BigInteger getCodigoTransacaoLog() { return this.codigoTransacaoLog; } public void setDadosXML(String dadosXML) { this.dadosXML = dadosXML; } public String getDadosXML() { return this.dadosXML; } public int hashCode() { boolean prime = true; byte result = 1; int result1 = 31 * result + (this.codigoInformacaoEnviada == null?0:this.codigoInformacaoEnviada.hashCode()); return result1; } public boolean equals(Object obj) { if(this == obj) { return true; } else if(obj == null) { return false; } else if(this.getClass() != obj.getClass()) { return false; } else { XMLTrafegadosBuscadorPotenciaisClientes other = (XMLTrafegadosBuscadorPotenciaisClientes)obj; if(this.codigoInformacaoEnviada == null) { if(other.codigoInformacaoEnviada != null) { return false; } } else if(!this.codigoInformacaoEnviada.equals(other.codigoInformacaoEnviada)) { return false; } return true; } } }