fixes bug#20656
qua:wally dev:fabio git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@104227 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
286d0aea34
commit
ec924e0700
|
@ -134,6 +134,15 @@ public class Ruta implements Serializable, Comparable<Ruta> {
|
||||||
@Column(name = "INDVENDAEMBARCADA")
|
@Column(name = "INDVENDAEMBARCADA")
|
||||||
private Boolean indVendaEmbarcada;
|
private Boolean indVendaEmbarcada;
|
||||||
|
|
||||||
|
@Column(name = "INDPRECIOPORDEMANDA")
|
||||||
|
private Boolean indPrecioPorDemanda;
|
||||||
|
|
||||||
|
@Column(name = "FECINIPRECIODEMANDA")
|
||||||
|
private Date fecInicioPrecioDemanda;
|
||||||
|
|
||||||
|
@Column(name = "FECFIMPRECIODEMANDA")
|
||||||
|
private Date fecFimPrecioDemanda;
|
||||||
|
|
||||||
@OneToMany(mappedBy = "ruta", cascade = CascadeType.ALL)
|
@OneToMany(mappedBy = "ruta", cascade = CascadeType.ALL)
|
||||||
private List<RutaEmbarqueDesembarque> lsRutaEmbarqueDesembarque;
|
private List<RutaEmbarqueDesembarque> lsRutaEmbarqueDesembarque;
|
||||||
|
|
||||||
|
@ -180,6 +189,9 @@ public class Ruta implements Serializable, Comparable<Ruta> {
|
||||||
ruta.indTribTaxaEmbarque = other.indTribTaxaEmbarque;
|
ruta.indTribTaxaEmbarque = other.indTribTaxaEmbarque;
|
||||||
ruta.indVentaRioCard = other.indVentaRioCard;
|
ruta.indVentaRioCard = other.indVentaRioCard;
|
||||||
ruta.indRutaInternacional = other.indRutaInternacional;
|
ruta.indRutaInternacional = other.indRutaInternacional;
|
||||||
|
ruta.indPrecioPorDemanda = other.indPrecioPorDemanda;
|
||||||
|
ruta.fecInicioPrecioDemanda = other.fecInicioPrecioDemanda;
|
||||||
|
ruta.fecFimPrecioDemanda = other.fecFimPrecioDemanda;
|
||||||
|
|
||||||
/******* ruta.lsRutaEmpresa *************/
|
/******* ruta.lsRutaEmpresa *************/
|
||||||
if (ruta.lsRutaEmpresa == null) {
|
if (ruta.lsRutaEmpresa == null) {
|
||||||
|
@ -589,4 +601,29 @@ public class Ruta implements Serializable, Comparable<Ruta> {
|
||||||
public void setLsRutaIcmsExcepcions(List<RutaIcmsExcepcion> lsRutaIcmsExcepcions) {
|
public void setLsRutaIcmsExcepcions(List<RutaIcmsExcepcion> lsRutaIcmsExcepcions) {
|
||||||
this.lsRutaIcmsExcepcions = lsRutaIcmsExcepcions;
|
this.lsRutaIcmsExcepcions = lsRutaIcmsExcepcions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Boolean getIndPrecioPorDemanda() {
|
||||||
|
return indPrecioPorDemanda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndPrecioPorDemanda(Boolean indPrecioPorDemanda) {
|
||||||
|
this.indPrecioPorDemanda = indPrecioPorDemanda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getFecInicioPrecioDemanda() {
|
||||||
|
return fecInicioPrecioDemanda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFecInicioPrecioDemanda(Date fecInicioPrecioDemanda) {
|
||||||
|
this.fecInicioPrecioDemanda = fecInicioPrecioDemanda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getFecFimPrecioDemanda() {
|
||||||
|
return fecFimPrecioDemanda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFecFimPrecioDemanda(Date fecFimPrecioDemanda) {
|
||||||
|
this.fecFimPrecioDemanda = fecFimPrecioDemanda;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -0,0 +1,311 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.entidad;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.OneToMany;
|
||||||
|
import javax.persistence.OneToOne;
|
||||||
|
import javax.persistence.SequenceGenerator;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Wallace
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@SequenceGenerator(name = "TARIFA_DEMANDA_SEQ", sequenceName = "TARIFA_DEMANDA_SEQ", allocationSize = 1)
|
||||||
|
@Table(name = "TARIFA_DEMANDA")
|
||||||
|
public class TarifaDemanda implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "TARIFA_SEQ")
|
||||||
|
@Column(name = "TARIFADEMANDA_ID")
|
||||||
|
private Integer tarifaDemandaId;
|
||||||
|
@Column(name = "PRECIO")
|
||||||
|
private BigDecimal precio;
|
||||||
|
@Column(name = "IMPORTETAXAEMBARQUE")
|
||||||
|
private BigDecimal importetaxaembarque;
|
||||||
|
@Column(name = "IMPORTEPEDAGIO")
|
||||||
|
private BigDecimal importepedagio;
|
||||||
|
@Column(name = "IMPORTEOUTROS")
|
||||||
|
private BigDecimal importeoutros;
|
||||||
|
@Column(name = "IMPORTESEGURO")
|
||||||
|
private BigDecimal importeseguro;
|
||||||
|
@Column(name = "IMPORTETPP")
|
||||||
|
private BigDecimal importeTPP;
|
||||||
|
@Column(name = "PRECIOORIGINAL")
|
||||||
|
private BigDecimal preciooriginal;
|
||||||
|
@Column(name = "STATUSTARIFA")
|
||||||
|
private String statustarifa;
|
||||||
|
@Column(name = "ACTIVO")
|
||||||
|
private Boolean activo;
|
||||||
|
@Column(name = "FECMODIF")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date fecmodif;
|
||||||
|
@Column(name = "USUARIO_ID")
|
||||||
|
private Integer usuarioId;
|
||||||
|
@OneToOne
|
||||||
|
@JoinColumn(name = "TRAMO_ID")
|
||||||
|
private Tramo tramo;
|
||||||
|
@OneToOne
|
||||||
|
@JoinColumn(name = "MARCA_ID")
|
||||||
|
private Marca marca;
|
||||||
|
@OneToOne
|
||||||
|
@JoinColumn(name = "CLASESERVICIO_ID")
|
||||||
|
private ClaseServicio claseServicio;
|
||||||
|
@OneToOne
|
||||||
|
@JoinColumn(name = "VIGENCIATARIFA_ID")
|
||||||
|
private VigenciaTarifa vigenciaTarifa;
|
||||||
|
@Column(name = "PRECIOREDABIERTO")
|
||||||
|
private BigDecimal precioredabierto;
|
||||||
|
@Column(name = "CATEGORIAS")
|
||||||
|
private String categorias;
|
||||||
|
@Column(name = "PUNTOVENTAS")
|
||||||
|
private String puntoVentas;
|
||||||
|
@OneToOne
|
||||||
|
@JoinColumn(name = "ORIGEN_ID")
|
||||||
|
private Parada origen;
|
||||||
|
@OneToOne
|
||||||
|
@JoinColumn(name = "DESTINO_ID")
|
||||||
|
private Parada destino;
|
||||||
|
@OneToOne
|
||||||
|
@JoinColumn(name = "RUTA_ID")
|
||||||
|
private Ruta ruta;
|
||||||
|
@OneToOne
|
||||||
|
@JoinColumn(name = "ORGAOCONCEDENTE_ID")
|
||||||
|
private OrgaoConcedente orgaoConcedente;
|
||||||
|
|
||||||
|
public TarifaDemanda() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrgaoConcedente getOrgaoConcedente() {
|
||||||
|
return orgaoConcedente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getImporteTPP() {
|
||||||
|
return importeTPP;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImporteTPP(BigDecimal importeTPP) {
|
||||||
|
this.importeTPP = importeTPP;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrgaoConcedente(OrgaoConcedente orgaoConcedente) {
|
||||||
|
this.orgaoConcedente = orgaoConcedente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Ruta getRuta() {
|
||||||
|
return ruta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRuta(Ruta ruta) {
|
||||||
|
this.ruta = ruta;
|
||||||
|
}
|
||||||
|
public TarifaDemanda(Integer tarifaDemandaId) {
|
||||||
|
this.tarifaDemandaId = tarifaDemandaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTarifaDemandaId() {
|
||||||
|
return tarifaDemandaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarifaId(Integer tarifaDemandaId) {
|
||||||
|
this.tarifaDemandaId = tarifaDemandaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getPrecio() {
|
||||||
|
return precio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrecio(BigDecimal precio) {
|
||||||
|
this.precio = precio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getPreciooriginal() {
|
||||||
|
return preciooriginal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreciooriginal(BigDecimal preciooriginal) {
|
||||||
|
this.preciooriginal = preciooriginal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatustarifa() {
|
||||||
|
return statustarifa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatustarifa(String statustarifa) {
|
||||||
|
this.statustarifa = statustarifa;
|
||||||
|
}
|
||||||
|
|
||||||
|
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 ClaseServicio getClaseServicio() {
|
||||||
|
return claseServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setClaseServicio(ClaseServicio claseServicio) {
|
||||||
|
this.claseServicio = claseServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Marca getMarca() {
|
||||||
|
return marca;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMarca(Marca marca) {
|
||||||
|
this.marca = marca;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Tramo getTramo() {
|
||||||
|
return tramo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTramo(Tramo tramo) {
|
||||||
|
this.tramo = tramo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public VigenciaTarifa getVigenciaTarifa() {
|
||||||
|
return vigenciaTarifa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVigenciaTarifa(VigenciaTarifa vigenciaTarifa) {
|
||||||
|
this.vigenciaTarifa = vigenciaTarifa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getPrecioredabierto() {
|
||||||
|
return precioredabierto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrecioredabierto(BigDecimal precioredabierto) {
|
||||||
|
this.precioredabierto = precioredabierto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCategorias() {
|
||||||
|
return categorias;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategorias(String categorias) {
|
||||||
|
this.categorias = categorias;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPuntoVentas() {
|
||||||
|
return puntoVentas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPuntoVentas(String puntoVentas) {
|
||||||
|
this.puntoVentas = puntoVentas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Parada getOrigen() {
|
||||||
|
return origen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrigen(Parada origen) {
|
||||||
|
this.origen = origen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Parada getDestino() {
|
||||||
|
return destino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDestino(Parada destino) {
|
||||||
|
this.destino = destino;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (tarifaDemandaId != null ? tarifaDemandaId.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Tarifa)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
TarifaDemanda other = (TarifaDemanda) object;
|
||||||
|
if ((this.tarifaDemandaId == null && other.tarifaDemandaId != null) || (this.tarifaDemandaId != null && !this.tarifaDemandaId.equals(other.tarifaDemandaId))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.rjconsultores.ventaboletos.entidad.Tarifa[tarifaId=" + tarifaDemandaId + "]";
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getImportetaxaembarque() {
|
||||||
|
return importetaxaembarque;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImportetaxaembarque(BigDecimal importetaxaembarque) {
|
||||||
|
this.importetaxaembarque = importetaxaembarque;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getImportepedagio() {
|
||||||
|
return importepedagio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImportepedagio(BigDecimal importepedagio) {
|
||||||
|
this.importepedagio = importepedagio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getImporteoutros() {
|
||||||
|
return importeoutros;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImporteoutros(BigDecimal importeoutros) {
|
||||||
|
this.importeoutros = importeoutros;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getImporteseguro() {
|
||||||
|
return importeseguro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImporteseguro(BigDecimal importeseguro) {
|
||||||
|
this.importeseguro = importeseguro;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue