211 lines
5.1 KiB
Java
211 lines
5.1 KiB
Java
package com.rjconsultores.ventaboletos.entidad;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
|
|
import javax.persistence.Basic;
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.SequenceGenerator;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Temporal;
|
|
import javax.persistence.TemporalType;
|
|
|
|
@Entity
|
|
@SequenceGenerator(name = "DET_ABASTO_BOLETO_SEQ", sequenceName = "DET_ABASTO_BOLETO_SEQ", allocationSize = 1)
|
|
@Table(name = "DET_ABASTO_BOLETO")
|
|
public class DetAbastoBoleto implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
|
@Basic(optional = false)
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "DET_ABASTO_BOLETO_SEQ")
|
|
@Column(name = "DETABASTOBOLETO_ID")
|
|
private Integer detabastoboletoId;
|
|
@Column(name = "NUMMOVIMIENTO")
|
|
private Long nummovimiento;
|
|
@Column(name = "NUMSERIEPREIMPRESA")
|
|
private String numseriepreimpresa;
|
|
@Column(name = "NUMFOLIOINICIAL")
|
|
private String numfolioinicial;
|
|
@Column(name = "NUMFOLIOFINAL")
|
|
private String numfoliofinal;
|
|
@Column(name = "STATUSFIRMA")
|
|
private Boolean statusfirma;
|
|
@Column(name = "STATUSOPERACION")
|
|
private Integer statusoperacion;
|
|
@Column(name = "STATUSENVIO")
|
|
private Boolean statusenvio;
|
|
@Column(name = "ACTIVO")
|
|
private Boolean activo;
|
|
@Column(name = "FECMODIF")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date fecmodif;
|
|
@Column(name = "USUARIO_ID")
|
|
private Integer usuarioId;
|
|
@Column(name = "INDINUTILIZA")
|
|
private Boolean indinutiliza;
|
|
@JoinColumn(name = "ABASTOBOLETO_ID", referencedColumnName = "ABASTOBOLETO_ID")
|
|
@ManyToOne
|
|
private AbastoBoleto abastoBoleto;
|
|
@JoinColumn(name = "AIDF_ID", referencedColumnName = "AIDF_ID")
|
|
@ManyToOne
|
|
private Aidf aidf;
|
|
|
|
public Integer getDetabastoboletoId() {
|
|
return detabastoboletoId;
|
|
}
|
|
|
|
public void setDetabastoboletoId(Integer detabastoboletoId) {
|
|
this.detabastoboletoId = detabastoboletoId;
|
|
}
|
|
|
|
public Long getNummovimiento() {
|
|
return nummovimiento;
|
|
}
|
|
|
|
public void setNummovimiento(Long nummovimiento) {
|
|
this.nummovimiento = nummovimiento;
|
|
}
|
|
|
|
public String getNumseriepreimpresa() {
|
|
return numseriepreimpresa;
|
|
}
|
|
|
|
public void setNumseriepreimpresa(String numseriepreimpresa) {
|
|
this.numseriepreimpresa = numseriepreimpresa;
|
|
}
|
|
|
|
public String getNumfolioinicial() {
|
|
return numfolioinicial;
|
|
}
|
|
|
|
public Long getFolioInicial() {
|
|
return Long.valueOf(numfolioinicial);
|
|
}
|
|
|
|
public void setNumfolioinicial(String numfolioinicial) {
|
|
this.numfolioinicial = numfolioinicial;
|
|
}
|
|
|
|
public String getNumfoliofinal() {
|
|
return numfoliofinal;
|
|
}
|
|
|
|
public Long getFolioFinal() {
|
|
return Long.valueOf(numfoliofinal);
|
|
}
|
|
|
|
public void setNumfoliofinal(String numfoliofinal) {
|
|
this.numfoliofinal = numfoliofinal;
|
|
}
|
|
|
|
public Boolean getStatusfirma() {
|
|
return statusfirma;
|
|
}
|
|
|
|
public void setStatusfirma(Boolean statusfirma) {
|
|
this.statusfirma = statusfirma;
|
|
}
|
|
|
|
public Integer getStatusoperacion() {
|
|
return statusoperacion;
|
|
}
|
|
|
|
public void setStatusoperacion(Integer statusoperacion) {
|
|
this.statusoperacion = statusoperacion;
|
|
}
|
|
|
|
public Boolean getStatusenvio() {
|
|
return statusenvio;
|
|
}
|
|
|
|
public void setStatusenvio(Boolean statusenvio) {
|
|
this.statusenvio = statusenvio;
|
|
}
|
|
|
|
public Boolean getActivo() {
|
|
return activo;
|
|
}
|
|
|
|
public void setActivo(Boolean activo) {
|
|
this.activo = activo;
|
|
}
|
|
|
|
public Date getFecmodif() {
|
|
return fecmodif;
|
|
}
|
|
|
|
public void setFecmodif(Date fecmodif) {
|
|
this.fecmodif = fecmodif;
|
|
}
|
|
|
|
public Integer getUsuarioId() {
|
|
return usuarioId;
|
|
}
|
|
|
|
public void setUsuarioId(Integer usuarioId) {
|
|
this.usuarioId = usuarioId;
|
|
}
|
|
|
|
public Boolean getIndinutiliza() {
|
|
return indinutiliza;
|
|
}
|
|
|
|
public void setIndinutiliza(Boolean indinutiliza) {
|
|
this.indinutiliza = indinutiliza;
|
|
}
|
|
|
|
public AbastoBoleto getAbastoBoleto() {
|
|
return abastoBoleto;
|
|
}
|
|
|
|
public void setAbastoBoleto(AbastoBoleto abastoBoleto) {
|
|
this.abastoBoleto = abastoBoleto;
|
|
}
|
|
|
|
public Aidf getAidf() {
|
|
return aidf;
|
|
}
|
|
|
|
public void setAidf(Aidf aidf) {
|
|
this.aidf = aidf;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
final int prime = 31;
|
|
int result = 1;
|
|
result = prime * result + ((detabastoboletoId == null) ? 0 : detabastoboletoId.hashCode());
|
|
return result;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object obj) {
|
|
if (this == obj)
|
|
return true;
|
|
if (obj == null)
|
|
return false;
|
|
if (getClass() != obj.getClass())
|
|
return false;
|
|
DetAbastoBoleto other = (DetAbastoBoleto) obj;
|
|
if (detabastoboletoId == null) {
|
|
if (other.detabastoboletoId != null)
|
|
return false;
|
|
} else if (!detabastoboletoId.equals(other.detabastoboletoId))
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "com.rjconsultores.ventaboletos.entidad.DetAbastoBoleto [detabastoboletoId=" + detabastoboletoId + "]";
|
|
}
|
|
|
|
}
|