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