git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@23984 d1611594-4594-4d17-8e1d-87c2c4800839
parent
087f2384dd
commit
bb755fe033
|
@ -33,403 +33,400 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "ESQUEMA_CORRIDA")
|
||||
public class EsquemaCorrida implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ESQUEMACORRIDA_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESQUEMA_CORRIDA_SEQ")
|
||||
private Integer esquemacorridaId;
|
||||
@Column(name = "HORASALIDA")
|
||||
@Temporal(TemporalType.TIME)
|
||||
private Date horasalida;
|
||||
@Column(name = "INDPISOEXTRA")
|
||||
private Boolean pisoExtra;
|
||||
@Column(name = "INDLUNES")
|
||||
private Boolean indlunes;
|
||||
@Column(name = "INDMARTES")
|
||||
private Boolean indmartes;
|
||||
@Column(name = "INDMIERCOLES")
|
||||
private Boolean indmiercoles;
|
||||
@Column(name = "INDJUEVES")
|
||||
private Boolean indjueves;
|
||||
@Column(name = "INDVIERNES")
|
||||
private Boolean indviernes;
|
||||
@Column(name = "INDSABADO")
|
||||
private Boolean indsabado;
|
||||
@Column(name = "INDDOMINGO")
|
||||
private Boolean inddomingo;
|
||||
@Column(name = "CANTPARADOS")
|
||||
private Integer cantparados;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@Column(name = "DIAGRAMAAUTOBUS_ID")
|
||||
private Integer diagramaAutobusId;
|
||||
@Column(name = "STATUSCORRIDA")
|
||||
private String statusCorrida;
|
||||
@JoinColumn(name = "RUTA_ID", referencedColumnName = "RUTA_ID")
|
||||
@ManyToOne
|
||||
private Ruta ruta;
|
||||
@JoinColumn(name = "ROLOPERATIVO_ID", referencedColumnName = "ROLOPERATIVO_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private RolOperativo rolOperativo;
|
||||
@JoinColumn(name = "ROLOPERATIVO2_ID", referencedColumnName = "ROLOPERATIVO_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private RolOperativo rolOperativo2;
|
||||
@JoinColumn(name = "MARCA_ID", referencedColumnName = "MARCA_ID")
|
||||
@ManyToOne
|
||||
private Marca marca;
|
||||
@JoinColumn(name = "ESQUEMAOPERACIONAL_ID", referencedColumnName = "ESQUEMAOPERACIONAL_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private EsquemaOperacional esquemaOperacional;
|
||||
@JoinColumn(name = "EMPRESACORRIDA_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa;
|
||||
@JoinColumn(name = "EMPRESAINGRESO_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa1;
|
||||
@JoinColumn(name = "CLASESERVICIO_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||
@ManyToOne
|
||||
private ClaseServicio claseServicio;
|
||||
@JoinColumn(name = "CLASESERVICIO2_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||
@ManyToOne
|
||||
private ClaseServicio claseServicio2;
|
||||
@OneToMany(cascade = CascadeType.ALL)
|
||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
private List<EsquemaTramo> esquemaTramoList;
|
||||
@OneToMany
|
||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
private List<EsquemaAsiento> esquemaAsientoList;
|
||||
@Column(name = "tipocorrida")
|
||||
private String tipocorrida;
|
||||
@JoinColumn(name = "ESQUEMAREBOTE_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
@ManyToOne
|
||||
private EsquemaCorrida esquemaCorridaRebote;
|
||||
@JoinColumn(name = "DIVISION_ID", referencedColumnName = "DIVISION_ID")
|
||||
@ManyToOne
|
||||
private Division division;
|
||||
@Column(name = "NUMCORRIDA")
|
||||
private Integer numCorrida;
|
||||
@Column(name = "NUMCORRIDAPISOEXTRA")
|
||||
private Integer numCorridaPisoExtra;
|
||||
@Column(name = "INDGENERAFERIADO")
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ESQUEMACORRIDA_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESQUEMA_CORRIDA_SEQ")
|
||||
private Integer esquemacorridaId;
|
||||
@Column(name = "HORASALIDA")
|
||||
@Temporal(TemporalType.TIME)
|
||||
private Date horasalida;
|
||||
@Column(name = "INDPISOEXTRA")
|
||||
private Boolean pisoExtra;
|
||||
@Column(name = "INDLUNES")
|
||||
private Boolean indlunes;
|
||||
@Column(name = "INDMARTES")
|
||||
private Boolean indmartes;
|
||||
@Column(name = "INDMIERCOLES")
|
||||
private Boolean indmiercoles;
|
||||
@Column(name = "INDJUEVES")
|
||||
private Boolean indjueves;
|
||||
@Column(name = "INDVIERNES")
|
||||
private Boolean indviernes;
|
||||
@Column(name = "INDSABADO")
|
||||
private Boolean indsabado;
|
||||
@Column(name = "INDDOMINGO")
|
||||
private Boolean inddomingo;
|
||||
@Column(name = "CANTPARADOS")
|
||||
private Integer cantparados;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@Column(name = "DIAGRAMAAUTOBUS_ID")
|
||||
private Integer diagramaAutobusId;
|
||||
@Column(name = "STATUSCORRIDA")
|
||||
private String statusCorrida;
|
||||
@JoinColumn(name = "RUTA_ID", referencedColumnName = "RUTA_ID")
|
||||
@ManyToOne
|
||||
private Ruta ruta;
|
||||
@JoinColumn(name = "ROLOPERATIVO_ID", referencedColumnName = "ROLOPERATIVO_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private RolOperativo rolOperativo;
|
||||
@JoinColumn(name = "ROLOPERATIVO2_ID", referencedColumnName = "ROLOPERATIVO_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private RolOperativo rolOperativo2;
|
||||
@JoinColumn(name = "MARCA_ID", referencedColumnName = "MARCA_ID")
|
||||
@ManyToOne
|
||||
private Marca marca;
|
||||
@JoinColumn(name = "ESQUEMAOPERACIONAL_ID", referencedColumnName = "ESQUEMAOPERACIONAL_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private EsquemaOperacional esquemaOperacional;
|
||||
@JoinColumn(name = "EMPRESACORRIDA_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa;
|
||||
@JoinColumn(name = "EMPRESAINGRESO_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa1;
|
||||
@JoinColumn(name = "CLASESERVICIO_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||
@ManyToOne
|
||||
private ClaseServicio claseServicio;
|
||||
@JoinColumn(name = "CLASESERVICIO2_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||
@ManyToOne
|
||||
private ClaseServicio claseServicio2;
|
||||
@OneToMany(cascade = CascadeType.ALL)
|
||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
private List<EsquemaTramo> esquemaTramoList;
|
||||
@OneToMany
|
||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
private List<EsquemaAsiento> esquemaAsientoList;
|
||||
@Column(name = "tipocorrida")
|
||||
private String tipocorrida;
|
||||
@JoinColumn(name = "ESQUEMAREBOTE_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||
@ManyToOne
|
||||
private EsquemaCorrida esquemaCorridaRebote;
|
||||
@JoinColumn(name = "DIVISION_ID", referencedColumnName = "DIVISION_ID")
|
||||
@ManyToOne
|
||||
private Division division;
|
||||
@Column(name = "NUMCORRIDA")
|
||||
private Integer numCorrida;
|
||||
@Column(name = "NUMCORRIDAPISOEXTRA")
|
||||
private Integer numCorridaPisoExtra;
|
||||
@Column(name = "INDGENERAFERIADO")
|
||||
private String indGeneraFeriado;
|
||||
|
||||
|
||||
|
||||
public enum GerarFeriado {
|
||||
// Declaração dos enum
|
||||
GERARSEMPRE ("GERAR SEMPRE", "S"),
|
||||
|
||||
GERARQUANDOFERIADO ("GERAR SÓ QUANDO FOR FERIADO", "F"),
|
||||
|
||||
GERARQUANDONAOFERIADO ("GERAR QUANDO NÃO FOR FERIADO", "N");
|
||||
|
||||
// Definição das constantes
|
||||
public final String valor;
|
||||
public final String descricao;
|
||||
|
||||
|
||||
public String valor() {
|
||||
|
||||
public enum GerarFeriado {
|
||||
// Declaração dos enum
|
||||
GERARSEMPRE("GERAR SEMPRE", "S"),
|
||||
|
||||
GERARQUANDOFERIADO("GERAR SÓ QUANDO FOR FERIADO", "F"),
|
||||
|
||||
GERARQUANDONAOFERIADO("GERAR QUANDO NÃO FOR FERIADO", "N");
|
||||
|
||||
// Definição das constantes
|
||||
public final String valor;
|
||||
public final String descricao;
|
||||
|
||||
public String valor() {
|
||||
return this.valor;
|
||||
}
|
||||
public String descricao() {
|
||||
|
||||
public String descricao() {
|
||||
return this.descricao;
|
||||
}
|
||||
private GerarFeriado( String descricao, String valor) {
|
||||
|
||||
private GerarFeriado(String descricao, String valor) {
|
||||
this.descricao = descricao;
|
||||
this.valor = valor;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public String getTipocorrida() {
|
||||
return tipocorrida;
|
||||
}
|
||||
public String getTipocorrida() {
|
||||
return tipocorrida;
|
||||
}
|
||||
|
||||
public void setTipocorrida(String tipocorrida) {
|
||||
this.tipocorrida = tipocorrida;
|
||||
}
|
||||
public void setTipocorrida(String tipocorrida) {
|
||||
this.tipocorrida = tipocorrida;
|
||||
}
|
||||
|
||||
public EsquemaCorrida() {
|
||||
}
|
||||
public EsquemaCorrida() {
|
||||
}
|
||||
|
||||
public EsquemaCorrida(Integer esquemacorridaId) {
|
||||
this.esquemacorridaId = esquemacorridaId;
|
||||
}
|
||||
public EsquemaCorrida(Integer esquemacorridaId) {
|
||||
this.esquemacorridaId = esquemacorridaId;
|
||||
}
|
||||
|
||||
public Integer getEsquemacorridaId() {
|
||||
return esquemacorridaId;
|
||||
}
|
||||
public Integer getEsquemacorridaId() {
|
||||
return esquemacorridaId;
|
||||
}
|
||||
|
||||
public void setEsquemacorridaId(Integer esquemacorridaId) {
|
||||
this.esquemacorridaId = esquemacorridaId;
|
||||
}
|
||||
public void setEsquemacorridaId(Integer esquemacorridaId) {
|
||||
this.esquemacorridaId = esquemacorridaId;
|
||||
}
|
||||
|
||||
public Date getHorasalida() {
|
||||
return horasalida;
|
||||
}
|
||||
public Date getHorasalida() {
|
||||
return horasalida;
|
||||
}
|
||||
|
||||
public void setHorasalida(Date horasalida) {
|
||||
this.horasalida = horasalida;
|
||||
}
|
||||
public void setHorasalida(Date horasalida) {
|
||||
this.horasalida = horasalida;
|
||||
}
|
||||
|
||||
public Integer getCantparados() {
|
||||
return cantparados;
|
||||
}
|
||||
public Integer getCantparados() {
|
||||
return cantparados;
|
||||
}
|
||||
|
||||
public void setCantparados(Integer cantparados) {
|
||||
this.cantparados = cantparados;
|
||||
}
|
||||
public void setCantparados(Integer cantparados) {
|
||||
this.cantparados = cantparados;
|
||||
}
|
||||
|
||||
public Boolean getInddomingo() {
|
||||
return inddomingo;
|
||||
}
|
||||
public Boolean getInddomingo() {
|
||||
return inddomingo;
|
||||
}
|
||||
|
||||
public void setInddomingo(Boolean inddomingo) {
|
||||
this.inddomingo = inddomingo;
|
||||
}
|
||||
public void setInddomingo(Boolean inddomingo) {
|
||||
this.inddomingo = inddomingo;
|
||||
}
|
||||
|
||||
public Boolean getIndjueves() {
|
||||
return indjueves;
|
||||
}
|
||||
public Boolean getIndjueves() {
|
||||
return indjueves;
|
||||
}
|
||||
|
||||
public void setIndjueves(Boolean indjueves) {
|
||||
this.indjueves = indjueves;
|
||||
}
|
||||
public void setIndjueves(Boolean indjueves) {
|
||||
this.indjueves = indjueves;
|
||||
}
|
||||
|
||||
public Boolean getIndlunes() {
|
||||
return indlunes;
|
||||
}
|
||||
public Boolean getIndlunes() {
|
||||
return indlunes;
|
||||
}
|
||||
|
||||
public void setIndlunes(Boolean indlunes) {
|
||||
this.indlunes = indlunes;
|
||||
}
|
||||
public void setIndlunes(Boolean indlunes) {
|
||||
this.indlunes = indlunes;
|
||||
}
|
||||
|
||||
public Boolean getIndmartes() {
|
||||
return indmartes;
|
||||
}
|
||||
public Boolean getIndmartes() {
|
||||
return indmartes;
|
||||
}
|
||||
|
||||
public void setIndmartes(Boolean indmartes) {
|
||||
this.indmartes = indmartes;
|
||||
}
|
||||
public void setIndmartes(Boolean indmartes) {
|
||||
this.indmartes = indmartes;
|
||||
}
|
||||
|
||||
public Boolean getIndmiercoles() {
|
||||
return indmiercoles;
|
||||
}
|
||||
public Boolean getIndmiercoles() {
|
||||
return indmiercoles;
|
||||
}
|
||||
|
||||
public void setIndmiercoles(Boolean indmiercoles) {
|
||||
this.indmiercoles = indmiercoles;
|
||||
}
|
||||
public void setIndmiercoles(Boolean indmiercoles) {
|
||||
this.indmiercoles = indmiercoles;
|
||||
}
|
||||
|
||||
public Boolean getIndsabado() {
|
||||
return indsabado;
|
||||
}
|
||||
public Boolean getIndsabado() {
|
||||
return indsabado;
|
||||
}
|
||||
|
||||
public void setIndsabado(Boolean indsabado) {
|
||||
this.indsabado = indsabado;
|
||||
}
|
||||
public void setIndsabado(Boolean indsabado) {
|
||||
this.indsabado = indsabado;
|
||||
}
|
||||
|
||||
public Boolean getIndviernes() {
|
||||
return indviernes;
|
||||
}
|
||||
public Boolean getIndviernes() {
|
||||
return indviernes;
|
||||
}
|
||||
|
||||
public void setIndviernes(Boolean indviernes) {
|
||||
this.indviernes = indviernes;
|
||||
}
|
||||
public void setIndviernes(Boolean indviernes) {
|
||||
this.indviernes = indviernes;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Ruta getRuta() {
|
||||
return ruta;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Ruta getRuta() {
|
||||
return ruta;
|
||||
}
|
||||
|
||||
public void setRuta(Ruta ruta) {
|
||||
this.ruta = ruta;
|
||||
}
|
||||
public void setRuta(Ruta ruta) {
|
||||
this.ruta = ruta;
|
||||
}
|
||||
|
||||
public RolOperativo getRolOperativo() {
|
||||
return rolOperativo;
|
||||
}
|
||||
|
||||
public void setRolOperativo(RolOperativo rolOperativo) {
|
||||
this.rolOperativo = rolOperativo;
|
||||
}
|
||||
|
||||
public Marca getMarca() {
|
||||
return marca;
|
||||
}
|
||||
|
||||
public void setMarca(Marca marca) {
|
||||
this.marca = marca;
|
||||
}
|
||||
|
||||
public EsquemaOperacional getEsquemaOperacional() {
|
||||
return esquemaOperacional;
|
||||
}
|
||||
|
||||
public void setEsquemaOperacional(EsquemaOperacional esquemaOperacional) {
|
||||
this.esquemaOperacional = esquemaOperacional;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa1() {
|
||||
return empresa1;
|
||||
}
|
||||
|
||||
public void setEmpresa1(Empresa empresa1) {
|
||||
this.empresa1 = empresa1;
|
||||
}
|
||||
|
||||
public ClaseServicio getClaseServicio() {
|
||||
return claseServicio;
|
||||
}
|
||||
|
||||
public void setClaseServicio(ClaseServicio claseServicio) {
|
||||
this.claseServicio = claseServicio;
|
||||
}
|
||||
|
||||
public String getStatusCorrida() {
|
||||
return statusCorrida;
|
||||
}
|
||||
|
||||
public void setStatusCorrida(String statusCorrida) {
|
||||
this.statusCorrida = statusCorrida;
|
||||
}
|
||||
|
||||
public Integer getDiagramaAutobusId() {
|
||||
return diagramaAutobusId;
|
||||
}
|
||||
|
||||
public void setDiagramaAutobusId(Integer diagramaAutobusId) {
|
||||
this.diagramaAutobusId = diagramaAutobusId;
|
||||
}
|
||||
|
||||
public Division getDivision() {
|
||||
return division;
|
||||
}
|
||||
|
||||
public void setDivision(Division division) {
|
||||
this.division = division;
|
||||
}
|
||||
|
||||
public Boolean getPisoExtra() {
|
||||
return pisoExtra;
|
||||
}
|
||||
|
||||
public void setPisoExtra(Boolean pisoExtra) {
|
||||
this.pisoExtra = pisoExtra;
|
||||
}
|
||||
|
||||
public List<EsquemaTramo> getEsquemaTramoList() {
|
||||
if (this.esquemaTramoList != null) {
|
||||
List<EsquemaTramo> esquemaList = new ArrayList<EsquemaTramo>();
|
||||
|
||||
for (EsquemaTramo ec : this.esquemaTramoList) {
|
||||
if (ec.getActivo() == Boolean.TRUE) {
|
||||
esquemaList.add(ec);
|
||||
}
|
||||
}
|
||||
return esquemaList;
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
public void setEsquemaTramoList(List<EsquemaTramo> esquemaTramoList) {
|
||||
this.esquemaTramoList = esquemaTramoList;
|
||||
}
|
||||
|
||||
public List<EsquemaAsiento> getEsquemaAsientoList() {
|
||||
List<EsquemaAsiento> esquemaList = new ArrayList<EsquemaAsiento>();
|
||||
for (EsquemaAsiento ec : this.esquemaAsientoList) {
|
||||
if (ec.getActivo() == Boolean.TRUE) {
|
||||
esquemaList.add(ec);
|
||||
}
|
||||
}
|
||||
return esquemaList;
|
||||
}
|
||||
|
||||
public void setEsquemaAsientoList(List<EsquemaAsiento> esquemaAsientoList) {
|
||||
this.esquemaAsientoList = esquemaAsientoList;
|
||||
}
|
||||
|
||||
public EsquemaCorrida getEsquemaCorridaRebote() {
|
||||
return esquemaCorridaRebote;
|
||||
}
|
||||
|
||||
public void setEsquemaCorridaRebote(EsquemaCorrida esquemaCorridaRebote) {
|
||||
this.esquemaCorridaRebote = esquemaCorridaRebote;
|
||||
}
|
||||
|
||||
public ClaseServicio getClaseServicio2() {
|
||||
return claseServicio2;
|
||||
}
|
||||
|
||||
public void setClaseServicio2(ClaseServicio claseServicio2) {
|
||||
this.claseServicio2 = claseServicio2;
|
||||
}
|
||||
|
||||
public RolOperativo getRolOperativo2() {
|
||||
return rolOperativo2;
|
||||
}
|
||||
|
||||
public void setRolOperativo2(RolOperativo rolOperativo2) {
|
||||
this.rolOperativo2 = rolOperativo2;
|
||||
}
|
||||
|
||||
public Integer getNumCorrida() {
|
||||
return numCorrida;
|
||||
}
|
||||
|
||||
public void setNumCorrida(Integer numCorrida) {
|
||||
this.numCorrida = numCorrida;
|
||||
}
|
||||
|
||||
public Integer getNumCorridaPisoExtra() {
|
||||
return numCorridaPisoExtra;
|
||||
}
|
||||
|
||||
public void setNumCorridaPisoExtra(Integer numCorridaPisoExtra) {
|
||||
this.numCorridaPisoExtra = numCorridaPisoExtra;
|
||||
}
|
||||
|
||||
public String getIndGeneraFeriado() {
|
||||
public RolOperativo getRolOperativo() {
|
||||
return rolOperativo;
|
||||
}
|
||||
|
||||
public void setRolOperativo(RolOperativo rolOperativo) {
|
||||
this.rolOperativo = rolOperativo;
|
||||
}
|
||||
|
||||
public Marca getMarca() {
|
||||
return marca;
|
||||
}
|
||||
|
||||
public void setMarca(Marca marca) {
|
||||
this.marca = marca;
|
||||
}
|
||||
|
||||
public EsquemaOperacional getEsquemaOperacional() {
|
||||
return esquemaOperacional;
|
||||
}
|
||||
|
||||
public void setEsquemaOperacional(EsquemaOperacional esquemaOperacional) {
|
||||
this.esquemaOperacional = esquemaOperacional;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa1() {
|
||||
return empresa1;
|
||||
}
|
||||
|
||||
public void setEmpresa1(Empresa empresa1) {
|
||||
this.empresa1 = empresa1;
|
||||
}
|
||||
|
||||
public ClaseServicio getClaseServicio() {
|
||||
return claseServicio;
|
||||
}
|
||||
|
||||
public void setClaseServicio(ClaseServicio claseServicio) {
|
||||
this.claseServicio = claseServicio;
|
||||
}
|
||||
|
||||
public String getStatusCorrida() {
|
||||
return statusCorrida;
|
||||
}
|
||||
|
||||
public void setStatusCorrida(String statusCorrida) {
|
||||
this.statusCorrida = statusCorrida;
|
||||
}
|
||||
|
||||
public Integer getDiagramaAutobusId() {
|
||||
return diagramaAutobusId;
|
||||
}
|
||||
|
||||
public void setDiagramaAutobusId(Integer diagramaAutobusId) {
|
||||
this.diagramaAutobusId = diagramaAutobusId;
|
||||
}
|
||||
|
||||
public Division getDivision() {
|
||||
return division;
|
||||
}
|
||||
|
||||
public void setDivision(Division division) {
|
||||
this.division = division;
|
||||
}
|
||||
|
||||
public Boolean getPisoExtra() {
|
||||
return pisoExtra;
|
||||
}
|
||||
|
||||
public void setPisoExtra(Boolean pisoExtra) {
|
||||
this.pisoExtra = pisoExtra;
|
||||
}
|
||||
|
||||
public List<EsquemaTramo> getEsquemaTramoList() {
|
||||
if (this.esquemaTramoList != null) {
|
||||
List<EsquemaTramo> esquemaList = new ArrayList<EsquemaTramo>();
|
||||
|
||||
for (EsquemaTramo ec : this.esquemaTramoList) {
|
||||
if (ec.getActivo() == Boolean.TRUE) {
|
||||
esquemaList.add(ec);
|
||||
}
|
||||
}
|
||||
return esquemaList;
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
public void setEsquemaTramoList(List<EsquemaTramo> esquemaTramoList) {
|
||||
this.esquemaTramoList = esquemaTramoList;
|
||||
}
|
||||
|
||||
public List<EsquemaAsiento> getEsquemaAsientoList() {
|
||||
List<EsquemaAsiento> esquemaList = new ArrayList<EsquemaAsiento>();
|
||||
for (EsquemaAsiento ec : this.esquemaAsientoList) {
|
||||
if (ec.getActivo() == Boolean.TRUE) {
|
||||
esquemaList.add(ec);
|
||||
}
|
||||
}
|
||||
return esquemaList;
|
||||
}
|
||||
|
||||
public void setEsquemaAsientoList(List<EsquemaAsiento> esquemaAsientoList) {
|
||||
this.esquemaAsientoList = esquemaAsientoList;
|
||||
}
|
||||
|
||||
public EsquemaCorrida getEsquemaCorridaRebote() {
|
||||
return esquemaCorridaRebote;
|
||||
}
|
||||
|
||||
public void setEsquemaCorridaRebote(EsquemaCorrida esquemaCorridaRebote) {
|
||||
this.esquemaCorridaRebote = esquemaCorridaRebote;
|
||||
}
|
||||
|
||||
public ClaseServicio getClaseServicio2() {
|
||||
return claseServicio2;
|
||||
}
|
||||
|
||||
public void setClaseServicio2(ClaseServicio claseServicio2) {
|
||||
this.claseServicio2 = claseServicio2;
|
||||
}
|
||||
|
||||
public RolOperativo getRolOperativo2() {
|
||||
return rolOperativo2;
|
||||
}
|
||||
|
||||
public void setRolOperativo2(RolOperativo rolOperativo2) {
|
||||
this.rolOperativo2 = rolOperativo2;
|
||||
}
|
||||
|
||||
public Integer getNumCorrida() {
|
||||
return numCorrida;
|
||||
}
|
||||
|
||||
public void setNumCorrida(Integer numCorrida) {
|
||||
this.numCorrida = numCorrida;
|
||||
}
|
||||
|
||||
public Integer getNumCorridaPisoExtra() {
|
||||
return numCorridaPisoExtra;
|
||||
}
|
||||
|
||||
public void setNumCorridaPisoExtra(Integer numCorridaPisoExtra) {
|
||||
this.numCorridaPisoExtra = numCorridaPisoExtra;
|
||||
}
|
||||
|
||||
public String getIndGeneraFeriado() {
|
||||
return indGeneraFeriado;
|
||||
}
|
||||
|
||||
|
@ -437,33 +434,29 @@ public class EsquemaCorrida implements Serializable {
|
|||
this.indGeneraFeriado = indGeneraFeriado;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (esquemacorridaId != null ? esquemacorridaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (esquemacorridaId != null ? esquemacorridaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
public boolean equals(Object object) {
|
||||
// TODO: Warning - this method won't work in the case the id fields are
|
||||
// not set
|
||||
if (!(object instanceof EsquemaCorrida)) {
|
||||
return false;
|
||||
}
|
||||
EsquemaCorrida other = (EsquemaCorrida) object;
|
||||
if ((this.esquemacorridaId == null && other.esquemacorridaId != null) || (this.esquemacorridaId != null && !this.esquemacorridaId.equals(other.esquemacorridaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@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 EsquemaCorrida)) {
|
||||
return false;
|
||||
}
|
||||
EsquemaCorrida other = (EsquemaCorrida) object;
|
||||
if ((this.esquemacorridaId == null && other.esquemacorridaId != null) || (this.esquemacorridaId != null && !this.esquemacorridaId.equals(other.esquemacorridaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.test.EsquemaCorrida[esquemacorridaId=" + esquemacorridaId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.test.EsquemaCorrida[esquemacorridaId=" + esquemacorridaId + "]";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.persistence.Temporal;
|
|||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Rafius
|
||||
*/
|
||||
@Entity
|
||||
|
@ -33,425 +33,471 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING")
|
||||
public class Pricing implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_SEQ")
|
||||
@Column(name = "PRICING_ID")
|
||||
private Integer pricingId;
|
||||
@Column(name = "NOMBPRICING")
|
||||
private String nombPricing;
|
||||
@Column(name = "CANTBOLETO")
|
||||
private Short cantboleto;
|
||||
//Rafael - Campo retirado pela Leticia no dia 15/02/2011.
|
||||
//@Column(name = "DESCUENTOIMPORTE")
|
||||
//private BigDecimal descuentoimporte;
|
||||
@Column(name = "DESCUENTOPORCENTAJE")
|
||||
private BigDecimal descuentoporcentaje;
|
||||
@Column(name = "DESCUENTOPORCREDONDO")
|
||||
private BigDecimal descuentoporcredondo;
|
||||
@Column(name = "INDTRANSFERIBLE")
|
||||
private Boolean indtransferible;
|
||||
@Column(name = "INDRESERVABLE")
|
||||
private Boolean indreservable;
|
||||
@Column(name = "INDCANCELABLE")
|
||||
private Boolean indcancelable;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@Column(name = "CANTDIASANTICIPACION")
|
||||
private Integer cantdiasanticipacion;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingOcupacion> pricingOcupacionList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingAsiento> pricingAsientoList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingMercado> pricingMercadoList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingMarca> pricingMarcaList;
|
||||
@JoinColumn(name = "EMPRESA_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingRuta> pricingRutaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingDia> pricingDiaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingImporte> pricingImporteList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingTipoPtoVta> pricingTipoptovtaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingCategoria> pricingCategoriaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingVigencia> pricingVigenciaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingClase> pricingClaseList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingCorrida> pricingCorridaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingPuntoVenta> pricingPuntoventaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingAnticipacion> pricingAnticipacionList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingTipoServicio> pricingTipoServicioList;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_SEQ")
|
||||
@Column(name = "PRICING_ID")
|
||||
private Integer pricingId;
|
||||
@Column(name = "NOMBPRICING")
|
||||
private String nombPricing;
|
||||
@Column(name = "CANTBOLETO")
|
||||
private Short cantboleto;
|
||||
// Rafael - Campo retirado pela Leticia no dia 15/02/2011.
|
||||
// @Column(name = "DESCUENTOIMPORTE")
|
||||
// private BigDecimal descuentoimporte;
|
||||
@Column(name = "DESCUENTOPORCENTAJE")
|
||||
private BigDecimal descuentoporcentaje;
|
||||
@Column(name = "DESCUENTOPORCREDONDO")
|
||||
private BigDecimal descuentoporcredondo;
|
||||
@Column(name = "INDTRANSFERIBLE")
|
||||
private Boolean indtransferible;
|
||||
@Column(name = "INDRESERVABLE")
|
||||
private Boolean indreservable;
|
||||
@Column(name = "INDCANCELABLE")
|
||||
private Boolean indcancelable;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@Column(name = "CANTDIASANTICIPACION")
|
||||
private Integer cantdiasanticipacion;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingOcupacion> pricingOcupacionList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingAsiento> pricingAsientoList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingMercado> pricingMercadoList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingMarca> pricingMarcaList;
|
||||
@JoinColumn(name = "EMPRESA_ID", referencedColumnName = "EMPRESA_ID")
|
||||
@ManyToOne
|
||||
private Empresa empresa;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingRuta> pricingRutaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingDia> pricingDiaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingImporte> pricingImporteList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingTipoPtoVta> pricingTipoptovtaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingCategoria> pricingCategoriaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingVigencia> pricingVigenciaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingClase> pricingClaseList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingCorrida> pricingCorridaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingPuntoVenta> pricingPuntoventaList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingAnticipacion> pricingAnticipacionList;
|
||||
@OneToMany(mappedBy = "pricing", cascade = CascadeType.ALL)
|
||||
private List<PricingTipoServicio> pricingTipoServicioList;
|
||||
@Column(name = "INDGENERAFERIADOVIAJE")
|
||||
private String indGeneraFeriadoViaje;
|
||||
@Column(name = "INDGENERAFERIADOVENTA")
|
||||
private String indGeneraFeriadoVenta;
|
||||
|
||||
public Pricing() {
|
||||
}
|
||||
public enum GerarFeriado {
|
||||
// Declaração dos enum
|
||||
GERARSEMPRE("GERAR SEMPRE", "S"),
|
||||
|
||||
public Pricing(Integer pricingId) {
|
||||
this.pricingId = pricingId;
|
||||
}
|
||||
GERARQUANDOFERIADO("GERAR SÓ QUANDO FOR FERIADO", "F"),
|
||||
|
||||
public Integer getPricingId() {
|
||||
return pricingId;
|
||||
}
|
||||
GERARQUANDONAOFERIADO("GERAR QUANDO NÃO FOR FERIADO", "N");
|
||||
|
||||
public void setPricingId(Integer pricingId) {
|
||||
this.pricingId = pricingId;
|
||||
}
|
||||
// Definição das constantes
|
||||
public final String valor;
|
||||
public final String descricao;
|
||||
|
||||
public Short getCantboleto() {
|
||||
return cantboleto;
|
||||
}
|
||||
public String valor() {
|
||||
return this.valor;
|
||||
}
|
||||
|
||||
public Integer getCantdiasanticipacion() {
|
||||
return cantdiasanticipacion;
|
||||
}
|
||||
public String descricao() {
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setCantdiasanticipacion(Integer cantdiasanticipacion) {
|
||||
this.cantdiasanticipacion = cantdiasanticipacion;
|
||||
}
|
||||
private GerarFeriado(String descricao, String valor) {
|
||||
this.descricao = descricao;
|
||||
this.valor = valor;
|
||||
}
|
||||
}
|
||||
|
||||
public void setCantboleto(Short cantboleto) {
|
||||
this.cantboleto = cantboleto;
|
||||
}
|
||||
public Pricing() {
|
||||
}
|
||||
|
||||
public BigDecimal getDescuentoporcentaje() {
|
||||
return descuentoporcentaje;
|
||||
}
|
||||
public Pricing(Integer pricingId) {
|
||||
this.pricingId = pricingId;
|
||||
}
|
||||
|
||||
public void setDescuentoporcentaje(BigDecimal descuentoporcentaje) {
|
||||
this.descuentoporcentaje = descuentoporcentaje;
|
||||
}
|
||||
public Integer getPricingId() {
|
||||
return pricingId;
|
||||
}
|
||||
|
||||
public BigDecimal getDescuentoporcredondo() {
|
||||
return descuentoporcredondo;
|
||||
}
|
||||
public void setPricingId(Integer pricingId) {
|
||||
this.pricingId = pricingId;
|
||||
}
|
||||
|
||||
public void setDescuentoporcredondo(BigDecimal descuentoporcredondo) {
|
||||
this.descuentoporcredondo = descuentoporcredondo;
|
||||
}
|
||||
public Short getCantboleto() {
|
||||
return cantboleto;
|
||||
}
|
||||
|
||||
public Boolean getIndtransferible() {
|
||||
return indtransferible;
|
||||
}
|
||||
public Integer getCantdiasanticipacion() {
|
||||
return cantdiasanticipacion;
|
||||
}
|
||||
|
||||
public void setIndtransferible(Boolean indtransferible) {
|
||||
this.indtransferible = indtransferible;
|
||||
}
|
||||
public void setCantdiasanticipacion(Integer cantdiasanticipacion) {
|
||||
this.cantdiasanticipacion = cantdiasanticipacion;
|
||||
}
|
||||
|
||||
public Boolean getIndreservable() {
|
||||
return indreservable;
|
||||
}
|
||||
public void setCantboleto(Short cantboleto) {
|
||||
this.cantboleto = cantboleto;
|
||||
}
|
||||
|
||||
public void setIndreservable(Boolean indreservable) {
|
||||
this.indreservable = indreservable;
|
||||
}
|
||||
public BigDecimal getDescuentoporcentaje() {
|
||||
return descuentoporcentaje;
|
||||
}
|
||||
|
||||
public Boolean getIndcancelable() {
|
||||
return indcancelable;
|
||||
}
|
||||
public void setDescuentoporcentaje(BigDecimal descuentoporcentaje) {
|
||||
this.descuentoporcentaje = descuentoporcentaje;
|
||||
}
|
||||
|
||||
public void setIndcancelable(Boolean indcancelable) {
|
||||
this.indcancelable = indcancelable;
|
||||
}
|
||||
public BigDecimal getDescuentoporcredondo() {
|
||||
return descuentoporcredondo;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public void setDescuentoporcredondo(BigDecimal descuentoporcredondo) {
|
||||
this.descuentoporcredondo = descuentoporcredondo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public Boolean getIndtransferible() {
|
||||
return indtransferible;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public void setIndtransferible(Boolean indtransferible) {
|
||||
this.indtransferible = indtransferible;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public Boolean getIndreservable() {
|
||||
return indreservable;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public void setIndreservable(Boolean indreservable) {
|
||||
this.indreservable = indreservable;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public Boolean getIndcancelable() {
|
||||
return indcancelable;
|
||||
}
|
||||
|
||||
public List<PricingOcupacion> getPricingOcupacionList() {
|
||||
List<PricingOcupacion> poList = new ArrayList<PricingOcupacion>();
|
||||
for (PricingOcupacion po : this.pricingOcupacionList) {
|
||||
if (po.getActivo() == Boolean.TRUE) {
|
||||
poList.add(po);
|
||||
}
|
||||
}
|
||||
return poList;
|
||||
}
|
||||
public void setIndcancelable(Boolean indcancelable) {
|
||||
this.indcancelable = indcancelable;
|
||||
}
|
||||
|
||||
public void setPricingOcupacionList(List<PricingOcupacion> pricingOcupacionList) {
|
||||
this.pricingOcupacionList = pricingOcupacionList;
|
||||
}
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public List<PricingAsiento> getPricingAsientoList() {
|
||||
List<PricingAsiento> paList = new ArrayList<PricingAsiento>();
|
||||
for (PricingAsiento pa : this.pricingAsientoList) {
|
||||
if (pa.getActivo() == Boolean.TRUE) {
|
||||
paList.add(pa);
|
||||
}
|
||||
}
|
||||
return paList;
|
||||
}
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public void setPricingAsientoList(List<PricingAsiento> pricingAsientoList) {
|
||||
this.pricingAsientoList = pricingAsientoList;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public List<PricingMercado> getPricingMercadoList() {
|
||||
List<PricingMercado> pmList = new ArrayList<PricingMercado>();
|
||||
for (PricingMercado pm : this.pricingMercadoList) {
|
||||
if (pm.getActivo() == Boolean.TRUE) {
|
||||
pmList.add(pm);
|
||||
}
|
||||
}
|
||||
return pmList;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public void setPricingMercadoList(List<PricingMercado> pricingMercadoList) {
|
||||
this.pricingMercadoList = pricingMercadoList;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public List<PricingMarca> getPricingMarcaList() {
|
||||
List<PricingMarca> pmList = new ArrayList<PricingMarca>();
|
||||
for (PricingMarca pm : this.pricingMarcaList) {
|
||||
if (pm.getActivo() == Boolean.TRUE) {
|
||||
pmList.add(pm);
|
||||
}
|
||||
}
|
||||
return pmList;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public void setPricingMarcaList(List<PricingMarca> pricingMarcaList) {
|
||||
this.pricingMarcaList = pricingMarcaList;
|
||||
}
|
||||
public List<PricingOcupacion> getPricingOcupacionList() {
|
||||
List<PricingOcupacion> poList = new ArrayList<PricingOcupacion>();
|
||||
for (PricingOcupacion po : this.pricingOcupacionList) {
|
||||
if (po.getActivo() == Boolean.TRUE) {
|
||||
poList.add(po);
|
||||
}
|
||||
}
|
||||
return poList;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
public void setPricingOcupacionList(List<PricingOcupacion> pricingOcupacionList) {
|
||||
this.pricingOcupacionList = pricingOcupacionList;
|
||||
}
|
||||
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
public List<PricingAsiento> getPricingAsientoList() {
|
||||
List<PricingAsiento> paList = new ArrayList<PricingAsiento>();
|
||||
for (PricingAsiento pa : this.pricingAsientoList) {
|
||||
if (pa.getActivo() == Boolean.TRUE) {
|
||||
paList.add(pa);
|
||||
}
|
||||
}
|
||||
return paList;
|
||||
}
|
||||
|
||||
public List<PricingRuta> getPricingRutaList() {
|
||||
List<PricingRuta> prList = new ArrayList<PricingRuta>();
|
||||
for (PricingRuta pr : this.pricingRutaList) {
|
||||
if (pr.getActivo() == Boolean.TRUE) {
|
||||
prList.add(pr);
|
||||
}
|
||||
}
|
||||
return prList;
|
||||
}
|
||||
public void setPricingAsientoList(List<PricingAsiento> pricingAsientoList) {
|
||||
this.pricingAsientoList = pricingAsientoList;
|
||||
}
|
||||
|
||||
public void setPricingRutaList(List<PricingRuta> pricingRutaList) {
|
||||
this.pricingRutaList = pricingRutaList;
|
||||
}
|
||||
public List<PricingMercado> getPricingMercadoList() {
|
||||
List<PricingMercado> pmList = new ArrayList<PricingMercado>();
|
||||
for (PricingMercado pm : this.pricingMercadoList) {
|
||||
if (pm.getActivo() == Boolean.TRUE) {
|
||||
pmList.add(pm);
|
||||
}
|
||||
}
|
||||
return pmList;
|
||||
}
|
||||
|
||||
public List<PricingDia> getPricingDiaList() {
|
||||
List<PricingDia> pdList = new ArrayList<PricingDia>();
|
||||
for (PricingDia pd : this.pricingDiaList) {
|
||||
if (pd.getActivo() == Boolean.TRUE) {
|
||||
pdList.add(pd);
|
||||
}
|
||||
}
|
||||
return pdList;
|
||||
}
|
||||
public void setPricingMercadoList(List<PricingMercado> pricingMercadoList) {
|
||||
this.pricingMercadoList = pricingMercadoList;
|
||||
}
|
||||
|
||||
public void setPricingDiaList(List<PricingDia> pricingDiaList) {
|
||||
this.pricingDiaList = pricingDiaList;
|
||||
}
|
||||
public List<PricingMarca> getPricingMarcaList() {
|
||||
List<PricingMarca> pmList = new ArrayList<PricingMarca>();
|
||||
for (PricingMarca pm : this.pricingMarcaList) {
|
||||
if (pm.getActivo() == Boolean.TRUE) {
|
||||
pmList.add(pm);
|
||||
}
|
||||
}
|
||||
return pmList;
|
||||
}
|
||||
|
||||
public List<PricingImporte> getPricingImporteList() {
|
||||
List<PricingImporte> piList = new ArrayList<PricingImporte>();
|
||||
for (PricingImporte pi : this.pricingImporteList) {
|
||||
if (pi.getActivo() == Boolean.TRUE) {
|
||||
piList.add(pi);
|
||||
}
|
||||
}
|
||||
return piList;
|
||||
}
|
||||
public void setPricingMarcaList(List<PricingMarca> pricingMarcaList) {
|
||||
this.pricingMarcaList = pricingMarcaList;
|
||||
}
|
||||
|
||||
public void setPricingImporteList(List<PricingImporte> pricingImporteList) {
|
||||
this.pricingImporteList = pricingImporteList;
|
||||
}
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
|
||||
public List<PricingTipoPtoVta> getPricingTipoptovtaList() {
|
||||
List<PricingTipoPtoVta> ptList = new ArrayList<PricingTipoPtoVta>();
|
||||
for (PricingTipoPtoVta pt : this.pricingTipoptovtaList) {
|
||||
if (pt.getActivo() == Boolean.TRUE) {
|
||||
ptList.add(pt);
|
||||
}
|
||||
}
|
||||
return ptList;
|
||||
}
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
|
||||
public void setPricingTipoptovtaList(List<PricingTipoPtoVta> pricingTipoptovtaList) {
|
||||
this.pricingTipoptovtaList = pricingTipoptovtaList;
|
||||
}
|
||||
public List<PricingRuta> getPricingRutaList() {
|
||||
List<PricingRuta> prList = new ArrayList<PricingRuta>();
|
||||
for (PricingRuta pr : this.pricingRutaList) {
|
||||
if (pr.getActivo() == Boolean.TRUE) {
|
||||
prList.add(pr);
|
||||
}
|
||||
}
|
||||
return prList;
|
||||
}
|
||||
|
||||
public List<PricingCategoria> getPricingCategoriaList() {
|
||||
List<PricingCategoria> pcList = new ArrayList<PricingCategoria>();
|
||||
for (PricingCategoria pc : this.pricingCategoriaList) {
|
||||
if (pc.getActivo() == Boolean.TRUE) {
|
||||
pcList.add(pc);
|
||||
}
|
||||
}
|
||||
return pcList;
|
||||
}
|
||||
public void setPricingRutaList(List<PricingRuta> pricingRutaList) {
|
||||
this.pricingRutaList = pricingRutaList;
|
||||
}
|
||||
|
||||
public void setPricingCategoriaList(List<PricingCategoria> pricingCategoriaList) {
|
||||
this.pricingCategoriaList = pricingCategoriaList;
|
||||
}
|
||||
public List<PricingDia> getPricingDiaList() {
|
||||
List<PricingDia> pdList = new ArrayList<PricingDia>();
|
||||
for (PricingDia pd : this.pricingDiaList) {
|
||||
if (pd.getActivo() == Boolean.TRUE) {
|
||||
pdList.add(pd);
|
||||
}
|
||||
}
|
||||
return pdList;
|
||||
}
|
||||
|
||||
public List<PricingVigencia> getPricingVigenciaList() {
|
||||
List<PricingVigencia> pvList = new ArrayList<PricingVigencia>();
|
||||
for (PricingVigencia pv : this.pricingVigenciaList) {
|
||||
if (pv.getActivo() == Boolean.TRUE) {
|
||||
pvList.add(pv);
|
||||
}
|
||||
}
|
||||
return pvList;
|
||||
}
|
||||
public void setPricingDiaList(List<PricingDia> pricingDiaList) {
|
||||
this.pricingDiaList = pricingDiaList;
|
||||
}
|
||||
|
||||
public void setPricingVigenciaList(List<PricingVigencia> pricingVigenciaList) {
|
||||
this.pricingVigenciaList = pricingVigenciaList;
|
||||
}
|
||||
public List<PricingImporte> getPricingImporteList() {
|
||||
List<PricingImporte> piList = new ArrayList<PricingImporte>();
|
||||
for (PricingImporte pi : this.pricingImporteList) {
|
||||
if (pi.getActivo() == Boolean.TRUE) {
|
||||
piList.add(pi);
|
||||
}
|
||||
}
|
||||
return piList;
|
||||
}
|
||||
|
||||
public List<PricingClase> getPricingClaseList() {
|
||||
List<PricingClase> pcList = new ArrayList<PricingClase>();
|
||||
for (PricingClase pc : this.pricingClaseList) {
|
||||
if (pc.getActivo() == Boolean.TRUE) {
|
||||
pcList.add(pc);
|
||||
}
|
||||
}
|
||||
return pcList;
|
||||
}
|
||||
public void setPricingImporteList(List<PricingImporte> pricingImporteList) {
|
||||
this.pricingImporteList = pricingImporteList;
|
||||
}
|
||||
|
||||
public void setPricingClaseList(List<PricingClase> pricingClaseList) {
|
||||
this.pricingClaseList = pricingClaseList;
|
||||
}
|
||||
public List<PricingTipoPtoVta> getPricingTipoptovtaList() {
|
||||
List<PricingTipoPtoVta> ptList = new ArrayList<PricingTipoPtoVta>();
|
||||
for (PricingTipoPtoVta pt : this.pricingTipoptovtaList) {
|
||||
if (pt.getActivo() == Boolean.TRUE) {
|
||||
ptList.add(pt);
|
||||
}
|
||||
}
|
||||
return ptList;
|
||||
}
|
||||
|
||||
public List<PricingCorrida> getPricingCorridaList() {
|
||||
public void setPricingTipoptovtaList(List<PricingTipoPtoVta> pricingTipoptovtaList) {
|
||||
this.pricingTipoptovtaList = pricingTipoptovtaList;
|
||||
}
|
||||
|
||||
List<PricingCorrida> pcList = new ArrayList<PricingCorrida>();
|
||||
if (pricingCorridaList == null) {
|
||||
return null;
|
||||
}
|
||||
for (PricingCorrida pc : this.pricingCorridaList) {
|
||||
if (pc.getActivo() == Boolean.TRUE) {
|
||||
pcList.add(pc);
|
||||
}
|
||||
}
|
||||
return pcList;
|
||||
}
|
||||
public List<PricingCategoria> getPricingCategoriaList() {
|
||||
List<PricingCategoria> pcList = new ArrayList<PricingCategoria>();
|
||||
for (PricingCategoria pc : this.pricingCategoriaList) {
|
||||
if (pc.getActivo() == Boolean.TRUE) {
|
||||
pcList.add(pc);
|
||||
}
|
||||
}
|
||||
return pcList;
|
||||
}
|
||||
|
||||
public void setPricingCorridaList(List<PricingCorrida> pricingCorridaList) {
|
||||
this.pricingCorridaList = pricingCorridaList;
|
||||
}
|
||||
public void setPricingCategoriaList(List<PricingCategoria> pricingCategoriaList) {
|
||||
this.pricingCategoriaList = pricingCategoriaList;
|
||||
}
|
||||
|
||||
public List<PricingPuntoVenta> getPricingPuntoventaList() {
|
||||
List<PricingPuntoVenta> ppList = new ArrayList<PricingPuntoVenta>();
|
||||
for (PricingPuntoVenta pp : this.pricingPuntoventaList) {
|
||||
if (pp.getActivo() == Boolean.TRUE) {
|
||||
ppList.add(pp);
|
||||
}
|
||||
}
|
||||
return ppList;
|
||||
}
|
||||
public List<PricingVigencia> getPricingVigenciaList() {
|
||||
List<PricingVigencia> pvList = new ArrayList<PricingVigencia>();
|
||||
for (PricingVigencia pv : this.pricingVigenciaList) {
|
||||
if (pv.getActivo() == Boolean.TRUE) {
|
||||
pvList.add(pv);
|
||||
}
|
||||
}
|
||||
return pvList;
|
||||
}
|
||||
|
||||
public void setPricingPuntoventaList(List<PricingPuntoVenta> pricingPuntoventaList) {
|
||||
this.pricingPuntoventaList = pricingPuntoventaList;
|
||||
}
|
||||
public void setPricingVigenciaList(List<PricingVigencia> pricingVigenciaList) {
|
||||
this.pricingVigenciaList = pricingVigenciaList;
|
||||
}
|
||||
|
||||
public List<PricingAnticipacion> getPricingAnticipacionList() {
|
||||
List<PricingAnticipacion> ppList = new ArrayList<PricingAnticipacion>();
|
||||
for (PricingAnticipacion pp : this.pricingAnticipacionList) {
|
||||
if (pp.getActivo() == Boolean.TRUE) {
|
||||
ppList.add(pp);
|
||||
}
|
||||
}
|
||||
return ppList;
|
||||
}
|
||||
public List<PricingClase> getPricingClaseList() {
|
||||
List<PricingClase> pcList = new ArrayList<PricingClase>();
|
||||
for (PricingClase pc : this.pricingClaseList) {
|
||||
if (pc.getActivo() == Boolean.TRUE) {
|
||||
pcList.add(pc);
|
||||
}
|
||||
}
|
||||
return pcList;
|
||||
}
|
||||
|
||||
public void setPricingAnticipacionList(List<PricingAnticipacion> pricingAnticipacionList) {
|
||||
this.pricingAnticipacionList = pricingAnticipacionList;
|
||||
}
|
||||
public void setPricingClaseList(List<PricingClase> pricingClaseList) {
|
||||
this.pricingClaseList = pricingClaseList;
|
||||
}
|
||||
|
||||
public List<PricingTipoServicio> getPricingTipoServicioList() {
|
||||
List<PricingTipoServicio> ppList = new ArrayList<PricingTipoServicio>();
|
||||
for (PricingTipoServicio pp : this.pricingTipoServicioList) {
|
||||
if (pp.getActivo() == Boolean.TRUE) {
|
||||
ppList.add(pp);
|
||||
}
|
||||
}
|
||||
return ppList;
|
||||
}
|
||||
public List<PricingCorrida> getPricingCorridaList() {
|
||||
|
||||
public void setPricingTipoServicioList(List<PricingTipoServicio> pricingTipoServicioList) {
|
||||
this.pricingTipoServicioList = pricingTipoServicioList;
|
||||
}
|
||||
List<PricingCorrida> pcList = new ArrayList<PricingCorrida>();
|
||||
if (pricingCorridaList == null) {
|
||||
return null;
|
||||
}
|
||||
for (PricingCorrida pc : this.pricingCorridaList) {
|
||||
if (pc.getActivo() == Boolean.TRUE) {
|
||||
pcList.add(pc);
|
||||
}
|
||||
}
|
||||
return pcList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingId != null ? pricingId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
public void setPricingCorridaList(List<PricingCorrida> pricingCorridaList) {
|
||||
this.pricingCorridaList = pricingCorridaList;
|
||||
}
|
||||
|
||||
@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 Pricing)) {
|
||||
return false;
|
||||
}
|
||||
Pricing other = (Pricing) object;
|
||||
if ((this.pricingId == null && other.pricingId != null) || (this.pricingId != null && !this.pricingId.equals(other.pricingId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public List<PricingPuntoVenta> getPricingPuntoventaList() {
|
||||
List<PricingPuntoVenta> ppList = new ArrayList<PricingPuntoVenta>();
|
||||
for (PricingPuntoVenta pp : this.pricingPuntoventaList) {
|
||||
if (pp.getActivo() == Boolean.TRUE) {
|
||||
ppList.add(pp);
|
||||
}
|
||||
}
|
||||
return ppList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.Pricing[pricingId=" + pricingId + "]";
|
||||
}
|
||||
public void setPricingPuntoventaList(List<PricingPuntoVenta> pricingPuntoventaList) {
|
||||
this.pricingPuntoventaList = pricingPuntoventaList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the nombPricing
|
||||
*/
|
||||
public String getNombPricing() {
|
||||
return nombPricing;
|
||||
}
|
||||
public List<PricingAnticipacion> getPricingAnticipacionList() {
|
||||
List<PricingAnticipacion> ppList = new ArrayList<PricingAnticipacion>();
|
||||
for (PricingAnticipacion pp : this.pricingAnticipacionList) {
|
||||
if (pp.getActivo() == Boolean.TRUE) {
|
||||
ppList.add(pp);
|
||||
}
|
||||
}
|
||||
return ppList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param nombPricing the nombPricing to set
|
||||
*/
|
||||
public void setNombPricing(String nombPricing) {
|
||||
this.nombPricing = nombPricing;
|
||||
}
|
||||
public void setPricingAnticipacionList(List<PricingAnticipacion> pricingAnticipacionList) {
|
||||
this.pricingAnticipacionList = pricingAnticipacionList;
|
||||
}
|
||||
|
||||
public List<PricingTipoServicio> getPricingTipoServicioList() {
|
||||
List<PricingTipoServicio> ppList = new ArrayList<PricingTipoServicio>();
|
||||
for (PricingTipoServicio pp : this.pricingTipoServicioList) {
|
||||
if (pp.getActivo() == Boolean.TRUE) {
|
||||
ppList.add(pp);
|
||||
}
|
||||
}
|
||||
return ppList;
|
||||
}
|
||||
|
||||
public void setPricingTipoServicioList(List<PricingTipoServicio> pricingTipoServicioList) {
|
||||
this.pricingTipoServicioList = pricingTipoServicioList;
|
||||
}
|
||||
|
||||
public String getIndGeneraFeriadoViaje() {
|
||||
return indGeneraFeriadoViaje;
|
||||
}
|
||||
|
||||
public void setIndGeneraFeriadoViaje(String indGeneraFeriadoViaje) {
|
||||
this.indGeneraFeriadoViaje = indGeneraFeriadoViaje;
|
||||
}
|
||||
|
||||
public String getIndGeneraFeriadoVenta() {
|
||||
return indGeneraFeriadoVenta;
|
||||
}
|
||||
|
||||
public void setIndGeneraFeriadoVenta(String indGeneraFeriadoVenta) {
|
||||
this.indGeneraFeriadoVenta = indGeneraFeriadoVenta;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingId != null ? pricingId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof Pricing)) {
|
||||
return false;
|
||||
}
|
||||
Pricing other = (Pricing) object;
|
||||
if ((this.pricingId == null && other.pricingId != null) || (this.pricingId != null && !this.pricingId.equals(other.pricingId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.Pricing[pricingId=" + pricingId + "]";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the nombPricing
|
||||
*/
|
||||
public String getNombPricing() {
|
||||
return nombPricing;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param nombPricing
|
||||
* the nombPricing to set
|
||||
*/
|
||||
public void setNombPricing(String nombPricing) {
|
||||
this.nombPricing = nombPricing;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ import javax.persistence.Temporal;
|
|||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Rafius
|
||||
*/
|
||||
@Entity
|
||||
|
@ -28,136 +28,135 @@ import javax.persistence.TemporalType;
|
|||
@Table(name = "PRICING_VIGENCIA")
|
||||
public class PricingVigencia implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_VIGENCIA_SEQ")
|
||||
@Column(name = "PRICINGVIGENCIA_ID")
|
||||
private Integer pricingvigenciaId;
|
||||
@Column(name = "FECINICIOVIAJE")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecinicioviaje;
|
||||
@Column(name = "FECFINVIAJE")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecfinviaje;
|
||||
@Column(name = "FECINICIOVENTA")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecinicioventa;
|
||||
@Column(name = "FECFINVENTA")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecfinventa;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRICING_VIGENCIA_SEQ")
|
||||
@Column(name = "PRICINGVIGENCIA_ID")
|
||||
private Integer pricingvigenciaId;
|
||||
@Column(name = "FECINICIOVIAJE")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecinicioviaje;
|
||||
@Column(name = "FECFINVIAJE")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecfinviaje;
|
||||
@Column(name = "FECINICIOVENTA")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecinicioventa;
|
||||
@Column(name = "FECFINVENTA")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecfinventa;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
||||
@ManyToOne
|
||||
private Pricing pricing;
|
||||
|
||||
public PricingVigencia() {
|
||||
}
|
||||
public PricingVigencia() {
|
||||
}
|
||||
|
||||
public PricingVigencia(Integer pricingvigenciaId) {
|
||||
this.pricingvigenciaId = pricingvigenciaId;
|
||||
}
|
||||
public PricingVigencia(Integer pricingvigenciaId) {
|
||||
this.pricingvigenciaId = pricingvigenciaId;
|
||||
}
|
||||
|
||||
public Integer getPricingvigenciaId() {
|
||||
return pricingvigenciaId;
|
||||
}
|
||||
public Integer getPricingvigenciaId() {
|
||||
return pricingvigenciaId;
|
||||
}
|
||||
|
||||
public void setPricingvigenciaId(Integer pricingvigenciaId) {
|
||||
this.pricingvigenciaId = pricingvigenciaId;
|
||||
}
|
||||
public void setPricingvigenciaId(Integer pricingvigenciaId) {
|
||||
this.pricingvigenciaId = pricingvigenciaId;
|
||||
}
|
||||
|
||||
public Date getFecinicioviaje() {
|
||||
return fecinicioviaje;
|
||||
}
|
||||
public Date getFecinicioviaje() {
|
||||
return fecinicioviaje;
|
||||
}
|
||||
|
||||
public void setFecinicioviaje(Date fecinicioviaje) {
|
||||
this.fecinicioviaje = fecinicioviaje;
|
||||
}
|
||||
public void setFecinicioviaje(Date fecinicioviaje) {
|
||||
this.fecinicioviaje = fecinicioviaje;
|
||||
}
|
||||
|
||||
public Date getFecfinviaje() {
|
||||
return fecfinviaje;
|
||||
}
|
||||
public Date getFecfinviaje() {
|
||||
return fecfinviaje;
|
||||
}
|
||||
|
||||
public void setFecfinviaje(Date fecfinviaje) {
|
||||
this.fecfinviaje = fecfinviaje;
|
||||
}
|
||||
public void setFecfinviaje(Date fecfinviaje) {
|
||||
this.fecfinviaje = fecfinviaje;
|
||||
}
|
||||
|
||||
public Date getFecinicioventa() {
|
||||
return fecinicioventa;
|
||||
}
|
||||
public Date getFecinicioventa() {
|
||||
return fecinicioventa;
|
||||
}
|
||||
|
||||
public void setFecinicioventa(Date fecinicioventa) {
|
||||
this.fecinicioventa = fecinicioventa;
|
||||
}
|
||||
public void setFecinicioventa(Date fecinicioventa) {
|
||||
this.fecinicioventa = fecinicioventa;
|
||||
}
|
||||
|
||||
public Date getFecfinventa() {
|
||||
return fecfinventa;
|
||||
}
|
||||
public Date getFecfinventa() {
|
||||
return fecfinventa;
|
||||
}
|
||||
|
||||
public void setFecfinventa(Date fecfinventa) {
|
||||
this.fecfinventa = fecfinventa;
|
||||
}
|
||||
public void setFecfinventa(Date fecfinventa) {
|
||||
this.fecfinventa = fecfinventa;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
public Pricing getPricing() {
|
||||
return pricing;
|
||||
}
|
||||
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
public void setPricing(Pricing pricing) {
|
||||
this.pricing = pricing;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingvigenciaId != null ? pricingvigenciaId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (pricingvigenciaId != null ? pricingvigenciaId.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 PricingVigencia)) {
|
||||
return false;
|
||||
}
|
||||
PricingVigencia other = (PricingVigencia) object;
|
||||
if ((this.pricingvigenciaId == null && other.pricingvigenciaId != null) || (this.pricingvigenciaId != null && !this.pricingvigenciaId.equals(other.pricingvigenciaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PricingVigencia)) {
|
||||
return false;
|
||||
}
|
||||
PricingVigencia other = (PricingVigencia) object;
|
||||
if ((this.pricingvigenciaId == null && other.pricingvigenciaId != null) || (this.pricingvigenciaId != null && !this.pricingvigenciaId.equals(other.pricingvigenciaId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingVigencia[pricingvigenciaId=" + pricingvigenciaId + "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "entidad.test.PricingVigencia[pricingvigenciaId=" + pricingvigenciaId + "]";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue