140 lines
3.8 KiB
Java
140 lines
3.8 KiB
Java
package com.rjconsultores.ventaboletos.entidad;
|
|
|
|
import java.io.Serializable;
|
|
import java.math.BigDecimal;
|
|
import java.util.Date;
|
|
|
|
import javax.persistence.Basic;
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.OneToOne;
|
|
import javax.persistence.SequenceGenerator;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Temporal;
|
|
import javax.persistence.TemporalType;
|
|
|
|
@Entity
|
|
@SequenceGenerator(name = "PEAJE_SEQ", sequenceName = "PEAJE_SEQ", allocationSize = 1)
|
|
@Table(name = "PEAJE")
|
|
public class Peaje implements Serializable{
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
|
@Basic(optional = false)
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PEAJE_SEQ")
|
|
@Column(name = "PEAJE_ID")
|
|
private Integer pejaeId;
|
|
@OneToOne
|
|
@JoinColumn(name = "RUTA_ID")
|
|
private Ruta ruta;
|
|
@OneToOne
|
|
@JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID")
|
|
private Parada origem;
|
|
@OneToOne
|
|
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID")
|
|
private Parada destino;
|
|
@OneToOne
|
|
@JoinColumn(name = "ORGAOCONCEDENTE_ID", referencedColumnName = "ORGAOCONCEDENTE_ID")
|
|
private OrgaoConcedente orgaoConcedente;
|
|
@OneToOne
|
|
@JoinColumn(name = "CASETAPEAJE_ID", referencedColumnName = "CASETAPEAJE_ID")
|
|
private CasetaPeaje casetaPeaje;
|
|
@Column(name = "CANTASIENTOS")
|
|
private BigDecimal cantAsientos;
|
|
@Column(name = "CANTEIXOS")
|
|
private BigDecimal cantEixos;
|
|
@Column(name = "IMPORTEPEAJE")
|
|
private BigDecimal importePeaje;
|
|
@Column(name = "INDICEPEAJE")
|
|
private BigDecimal indicePeaje;
|
|
@Column(name = "ACTIVO")
|
|
private Boolean activo;
|
|
@Column(name = "FECMODIF")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date fecmodif;
|
|
@Column(name = "USUARIO_ID")
|
|
private Integer usuarioId;
|
|
public Integer getPejaeId() {
|
|
return pejaeId;
|
|
}
|
|
public void setPejaeId(Integer pejaeId) {
|
|
this.pejaeId = pejaeId;
|
|
}
|
|
public Ruta getRuta() {
|
|
return ruta;
|
|
}
|
|
public void setRuta(Ruta ruta) {
|
|
this.ruta = ruta;
|
|
}
|
|
public Parada getOrigem() {
|
|
return origem;
|
|
}
|
|
public void setOrigem(Parada origem) {
|
|
this.origem = origem;
|
|
}
|
|
public Parada getDestino() {
|
|
return destino;
|
|
}
|
|
public void setDestino(Parada destino) {
|
|
this.destino = destino;
|
|
}
|
|
public OrgaoConcedente getOrgaoConcedente() {
|
|
return orgaoConcedente;
|
|
}
|
|
public void setOrgaoConcedente(OrgaoConcedente orgaoConcedente) {
|
|
this.orgaoConcedente = orgaoConcedente;
|
|
}
|
|
public CasetaPeaje getCasetaPeaje() {
|
|
return casetaPeaje;
|
|
}
|
|
public void setCasetaPeaje(CasetaPeaje casetaPeaje) {
|
|
this.casetaPeaje = casetaPeaje;
|
|
}
|
|
public BigDecimal getCantAsientos() {
|
|
return cantAsientos;
|
|
}
|
|
public void setCantAsientos(BigDecimal cantAsientos) {
|
|
this.cantAsientos = cantAsientos;
|
|
}
|
|
public BigDecimal getCantEixos() {
|
|
return cantEixos;
|
|
}
|
|
public void setCantEixos(BigDecimal cantEixos) {
|
|
this.cantEixos = cantEixos;
|
|
}
|
|
public BigDecimal getImportePeaje() {
|
|
return importePeaje;
|
|
}
|
|
public void setImportePeaje(BigDecimal importePeaje) {
|
|
this.importePeaje = importePeaje;
|
|
}
|
|
public BigDecimal getIndicePeaje() {
|
|
return indicePeaje;
|
|
}
|
|
public void setIndicePeaje(BigDecimal indicePeaje) {
|
|
this.indicePeaje = indicePeaje;
|
|
}
|
|
public Boolean getActivo() {
|
|
return activo;
|
|
}
|
|
public void setActivo(Boolean activo) {
|
|
this.activo = activo;
|
|
}
|
|
public Date getFecmodif() {
|
|
return fecmodif;
|
|
}
|
|
public void setFecmodif(Date fecmodif) {
|
|
this.fecmodif = fecmodif;
|
|
}
|
|
public Integer getUsuarioId() {
|
|
return usuarioId;
|
|
}
|
|
public void setUsuarioId(Integer usuarioId) {
|
|
this.usuarioId = usuarioId;
|
|
}
|
|
}
|