git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@20756 d1611594-4594-4d17-8e1d-87c2c4800839
parent
ad643379f6
commit
3d691abc26
|
@ -0,0 +1,105 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.entidad;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.JoinColumn;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author gleimar
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "SEGURO_KM")
|
||||||
|
public class SeguroKm implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "SEGUROKM_ID")
|
||||||
|
private Integer segurokmId;
|
||||||
|
@Column(name = "KMATE")
|
||||||
|
private Integer kmate;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "VALORTAXA")
|
||||||
|
private BigDecimal valortaxa;
|
||||||
|
@JoinColumn(name = "ORGAOCONCEDENTE_ID", referencedColumnName = "ORGAOCONCEDENTE_ID")
|
||||||
|
@ManyToOne
|
||||||
|
private OrgaoConcedente orgaoconcedenteId;
|
||||||
|
|
||||||
|
public SeguroKm() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public SeguroKm(Integer segurokmId) {
|
||||||
|
this.segurokmId = segurokmId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSegurokmId() {
|
||||||
|
return segurokmId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSegurokmId(Integer segurokmId) {
|
||||||
|
this.segurokmId = segurokmId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getKmate() {
|
||||||
|
return kmate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmate(Integer kmate) {
|
||||||
|
this.kmate = kmate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getValortaxa() {
|
||||||
|
return valortaxa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValortaxa(BigDecimal valortaxa) {
|
||||||
|
this.valortaxa = valortaxa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrgaoConcedente getOrgaoconcedenteId() {
|
||||||
|
return orgaoconcedenteId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrgaoconcedenteId(OrgaoConcedente orgaoconcedenteId) {
|
||||||
|
this.orgaoconcedenteId = orgaoconcedenteId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (segurokmId != null ? segurokmId.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 SeguroKm)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
SeguroKm other = (SeguroKm) object;
|
||||||
|
if ((this.segurokmId == null && other.segurokmId != null) || (this.segurokmId != null && !this.segurokmId.equals(other.segurokmId))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.rjconsultores.ventaboletos.entidad.SeguroKm[ segurokmId=" + segurokmId + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,105 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.entidad;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.JoinColumn;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author gleimar
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "SEGURO_TARIFA")
|
||||||
|
public class SeguroTarifa implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "SEGUROTARIFA_ID")
|
||||||
|
private Integer segurotarifaId;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "VALORTARIFA")
|
||||||
|
private BigDecimal valortarifa;
|
||||||
|
@Column(name = "VALORTAXA")
|
||||||
|
private BigDecimal valortaxa;
|
||||||
|
@JoinColumn(name = "ORGAOCONCEDENTE_ID", referencedColumnName = "ORGAOCONCEDENTE_ID")
|
||||||
|
@ManyToOne
|
||||||
|
private OrgaoConcedente orgaoconcedenteId;
|
||||||
|
|
||||||
|
public SeguroTarifa() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public SeguroTarifa(Integer segurotarifaId) {
|
||||||
|
this.segurotarifaId = segurotarifaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSegurotarifaId() {
|
||||||
|
return segurotarifaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSegurotarifaId(Integer segurotarifaId) {
|
||||||
|
this.segurotarifaId = segurotarifaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getValortarifa() {
|
||||||
|
return valortarifa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValortarifa(BigDecimal valortarifa) {
|
||||||
|
this.valortarifa = valortarifa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getValortaxa() {
|
||||||
|
return valortaxa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValortaxa(BigDecimal valortaxa) {
|
||||||
|
this.valortaxa = valortaxa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrgaoConcedente getOrgaoconcedenteId() {
|
||||||
|
return orgaoconcedenteId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrgaoconcedenteId(OrgaoConcedente orgaoconcedenteId) {
|
||||||
|
this.orgaoconcedenteId = orgaoconcedenteId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (segurotarifaId != null ? segurotarifaId.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 SeguroTarifa)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
SeguroTarifa other = (SeguroTarifa) object;
|
||||||
|
if ((this.segurotarifaId == null && other.segurotarifaId != null) || (this.segurotarifaId != null && !this.segurotarifaId.equals(other.segurotarifaId))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.rjconsultores.ventaboletos.entidad.SeguroTarifa[ segurotarifaId=" + segurotarifaId + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,105 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.entidad;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.JoinColumn;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author gleimar
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "TAXA_EMBARQUE_KM")
|
||||||
|
public class TaxaEmbarqueKm implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "TAXAEMBARQUEKM_ID")
|
||||||
|
private Integer taxaembarquekmId;
|
||||||
|
@Column(name = "KMATE")
|
||||||
|
private Integer kmate;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "VALORTAXA")
|
||||||
|
private BigDecimal valortaxa;
|
||||||
|
@JoinColumn(name = "ORGAOCONCEDENTE_ID", referencedColumnName = "ORGAOCONCEDENTE_ID")
|
||||||
|
@ManyToOne
|
||||||
|
private OrgaoConcedente orgaoconcedenteId;
|
||||||
|
|
||||||
|
public TaxaEmbarqueKm() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaxaEmbarqueKm(Integer taxaembarquekmId) {
|
||||||
|
this.taxaembarquekmId = taxaembarquekmId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTaxaembarquekmId() {
|
||||||
|
return taxaembarquekmId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaxaembarquekmId(Integer taxaembarquekmId) {
|
||||||
|
this.taxaembarquekmId = taxaembarquekmId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getKmate() {
|
||||||
|
return kmate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmate(Integer kmate) {
|
||||||
|
this.kmate = kmate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getValortaxa() {
|
||||||
|
return valortaxa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValortaxa(BigDecimal valortaxa) {
|
||||||
|
this.valortaxa = valortaxa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrgaoConcedente getOrgaoconcedenteId() {
|
||||||
|
return orgaoconcedenteId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrgaoconcedenteId(OrgaoConcedente orgaoconcedenteId) {
|
||||||
|
this.orgaoconcedenteId = orgaoconcedenteId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (taxaembarquekmId != null ? taxaembarquekmId.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 TaxaEmbarqueKm)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
TaxaEmbarqueKm other = (TaxaEmbarqueKm) object;
|
||||||
|
if ((this.taxaembarquekmId == null && other.taxaembarquekmId != null) || (this.taxaembarquekmId != null && !this.taxaembarquekmId.equals(other.taxaembarquekmId))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueKm[ taxaembarquekmId=" + taxaembarquekmId + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,132 @@
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.entidad;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.JoinColumn;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author gleimar
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "TAXA_EMBARQUE_PARADA")
|
||||||
|
public class TaxaEmbarqueParada implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "TAXAEMBARQUEPARADA_ID")
|
||||||
|
private Integer taxaembarqueparadaId;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "INDTIPO")
|
||||||
|
private char indtipo;
|
||||||
|
@Column(name = "KMATE")
|
||||||
|
private Integer kmate;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "VALORTAXA")
|
||||||
|
private BigDecimal valortaxa;
|
||||||
|
@JoinColumn(name = "PARADA_ID", referencedColumnName = "PARADA_ID")
|
||||||
|
@ManyToOne
|
||||||
|
private Parada paradaId;
|
||||||
|
@JoinColumn(name = "ORGAOCONCEDENTE_ID", referencedColumnName = "ORGAOCONCEDENTE_ID")
|
||||||
|
@ManyToOne
|
||||||
|
private OrgaoConcedente orgaoconcedenteId;
|
||||||
|
|
||||||
|
public TaxaEmbarqueParada() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaxaEmbarqueParada(Integer taxaembarqueparadaId) {
|
||||||
|
this.taxaembarqueparadaId = taxaembarqueparadaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaxaEmbarqueParada(Integer taxaembarqueparadaId, char indtipo) {
|
||||||
|
this.taxaembarqueparadaId = taxaembarqueparadaId;
|
||||||
|
this.indtipo = indtipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTaxaembarqueparadaId() {
|
||||||
|
return taxaembarqueparadaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaxaembarqueparadaId(Integer taxaembarqueparadaId) {
|
||||||
|
this.taxaembarqueparadaId = taxaembarqueparadaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public char getIndtipo() {
|
||||||
|
return indtipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndtipo(char indtipo) {
|
||||||
|
this.indtipo = indtipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getKmate() {
|
||||||
|
return kmate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKmate(Integer kmate) {
|
||||||
|
this.kmate = kmate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getValortaxa() {
|
||||||
|
return valortaxa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValortaxa(BigDecimal valortaxa) {
|
||||||
|
this.valortaxa = valortaxa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Parada getParadaId() {
|
||||||
|
return paradaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParadaId(Parada paradaId) {
|
||||||
|
this.paradaId = paradaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrgaoConcedente getOrgaoconcedenteId() {
|
||||||
|
return orgaoconcedenteId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrgaoconcedenteId(OrgaoConcedente orgaoconcedenteId) {
|
||||||
|
this.orgaoconcedenteId = orgaoconcedenteId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (taxaembarqueparadaId != null ? taxaembarqueparadaId.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 TaxaEmbarqueParada)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
TaxaEmbarqueParada other = (TaxaEmbarqueParada) object;
|
||||||
|
if ((this.taxaembarqueparadaId == null && other.taxaembarqueparadaId != null) || (this.taxaembarqueparadaId != null && !this.taxaembarqueparadaId.equals(other.taxaembarqueparadaId))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueParada[ taxaembarqueparadaId=" + taxaembarqueparadaId + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue