144 lines
3.7 KiB
Java
144 lines
3.7 KiB
Java
package com.rjconsultores.ventaboletos.entidad;
|
|
|
|
import java.io.Serializable;
|
|
import java.math.BigDecimal;
|
|
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 = "TAXA_EMB_LEVANTE_SEQ", sequenceName = "TAXA_EMB_LEVANTE_SEQ", allocationSize = 1)
|
|
@Table(name = "TAXA_EMB_LEVANTE")
|
|
public class TaxaEmbLevante implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@Id
|
|
@Basic(optional = false)
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "TAXA_EMB_LEVANTE_SEQ")
|
|
@Column(name = "TAXAEMBLEVANTE_ID")
|
|
private Integer taxaEmbLevanteId;
|
|
@JoinColumn(name = "TAXAEMBLEVANTECTRL_ID", referencedColumnName = "TAXAEMBLEVANTECTRL_ID")
|
|
@ManyToOne
|
|
private TaxaEmbLevanteCtrl taxaEmbLevanteCtrl;
|
|
@JoinColumn(name = "PARADA_ID", referencedColumnName = "PARADA_ID")
|
|
@ManyToOne
|
|
private Parada parada;
|
|
@Column(name = "IMPORTE")
|
|
private BigDecimal importe;
|
|
@Column(name = "ACTIVO")
|
|
private Boolean activo;
|
|
@Column(name = "FECMODIF")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date fecmodif;
|
|
@Column(name = "USUARIO_ID")
|
|
private Integer usuarioId;
|
|
|
|
public TaxaEmbLevante() {
|
|
}
|
|
|
|
public TaxaEmbLevante(Integer taxaEmbLevanteId) {
|
|
this.taxaEmbLevanteId = taxaEmbLevanteId;
|
|
}
|
|
|
|
public TaxaEmbLevante(Integer taxaEmbLevanteId, BigDecimal importe, Boolean activo, Date fecmodif, Integer usuarioId) {
|
|
this.taxaEmbLevanteId = taxaEmbLevanteId;
|
|
this.importe = importe;
|
|
this.activo = activo;
|
|
this.fecmodif = fecmodif;
|
|
this.usuarioId = usuarioId;
|
|
}
|
|
|
|
public Integer getTaxaEmbLevanteId() {
|
|
return taxaEmbLevanteId;
|
|
}
|
|
|
|
public void setTaxaEmbLevanteId(Integer taxaEmbLevanteId) {
|
|
this.taxaEmbLevanteId = taxaEmbLevanteId;
|
|
}
|
|
|
|
public TaxaEmbLevanteCtrl getTaxaEmbLevanteCtrl() {
|
|
return taxaEmbLevanteCtrl;
|
|
}
|
|
|
|
public void setTaxaEmbLevanteCtrl(TaxaEmbLevanteCtrl taxaEmbLevanteCtrl) {
|
|
this.taxaEmbLevanteCtrl = taxaEmbLevanteCtrl;
|
|
}
|
|
|
|
public Parada getParada() {
|
|
return parada;
|
|
}
|
|
|
|
public void setParada(Parada parada) {
|
|
this.parada = parada;
|
|
}
|
|
|
|
public BigDecimal getImporte() {
|
|
return importe;
|
|
}
|
|
|
|
public void setImporte(BigDecimal importe) {
|
|
this.importe = importe;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
int hash = 0;
|
|
hash += (taxaEmbLevanteId != null ? taxaEmbLevanteId.hashCode() : 0);
|
|
return hash;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object object) {
|
|
if (!(object instanceof TaxaEmbLevante)) {
|
|
return false;
|
|
}
|
|
TaxaEmbLevante other = (TaxaEmbLevante) object;
|
|
if ((this.taxaEmbLevanteId == null && other.taxaEmbLevanteId != null) || (this.taxaEmbLevanteId != null && !this.taxaEmbLevanteId.equals(other.taxaEmbLevanteId))) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "com.rjconsultores.ventaboletos.entidad.TaxaEmbLevante[taxaEmbLevanteId=" + taxaEmbLevanteId + "]";
|
|
}
|
|
|
|
}
|