bug #8444
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@67502 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
8daf4ec0aa
commit
65b576fe38
|
@ -62,6 +62,9 @@ public class Categoria implements Serializable {
|
|||
@ManyToOne()
|
||||
private GrupoCategoria grupoCategoria;
|
||||
|
||||
@OneToMany(mappedBy = "categoria", cascade = CascadeType.ALL)
|
||||
private List<OrgaoConcedente> orgaosConcedentes;
|
||||
|
||||
@Column(name = "INDCONFERENCIAFISICACOMISSAO")
|
||||
private Boolean indconferenciafisicacomissao;
|
||||
|
||||
|
@ -227,5 +230,13 @@ public class Categoria implements Serializable {
|
|||
public void setIndnaousaassento(Boolean indnaousaassento) {
|
||||
this.indnaousaassento = indnaousaassento;
|
||||
}
|
||||
|
||||
|
||||
public List<OrgaoConcedente> getOrgaosConcedentes() {
|
||||
return orgaosConcedentes;
|
||||
}
|
||||
|
||||
public void setOrgaosConcedentes(List<OrgaoConcedente> orgaosConcedentes) {
|
||||
this.orgaosConcedentes = orgaosConcedentes;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Basic;
|
||||
|
@ -16,7 +17,7 @@ import javax.persistence.TemporalType;
|
|||
@Entity
|
||||
@SequenceGenerator(name = "GRUPO_CATEGORIA_SEQ", sequenceName = "GRUPO_CATEGORIA_SEQ", allocationSize = 1)
|
||||
@Table(name = "GRUPO_CATEGORIA")
|
||||
public class GrupoCategoria {
|
||||
public class GrupoCategoria implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
|
|
|
@ -13,6 +13,8 @@ import javax.persistence.Entity;
|
|||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
|
@ -54,6 +56,11 @@ public class OrgaoConcedente implements Serializable {
|
|||
private BigDecimal indicePeaje;
|
||||
@Column(name = "IDADE_IDOSO")
|
||||
private Integer idadeIdoso;
|
||||
@Column(name = "IDADE_MINIMA")
|
||||
private Integer idadeMinima;
|
||||
@JoinColumn(name = "CATEGORIA_ID", referencedColumnName = "CATEGORIA_ID")
|
||||
@ManyToOne()
|
||||
private Categoria categoria;
|
||||
|
||||
@OneToMany(mappedBy = "orgaoConcedente", cascade = CascadeType.ALL)
|
||||
private List<ClasseIndicePeaje> classesIndicePeaje;
|
||||
|
@ -174,6 +181,22 @@ public class OrgaoConcedente implements Serializable {
|
|||
|
||||
public void setClassesIndicePeaje(List<ClasseIndicePeaje> classesIndicePeaje) {
|
||||
this.classesIndicePeaje = classesIndicePeaje;
|
||||
}
|
||||
|
||||
public Integer getIdadeMinima() {
|
||||
return idadeMinima;
|
||||
}
|
||||
|
||||
public void setIdadeMinima(Integer idadeMinima) {
|
||||
this.idadeMinima = idadeMinima;
|
||||
}
|
||||
|
||||
public Categoria getCategoria() {
|
||||
return categoria;
|
||||
}
|
||||
|
||||
public void setCategoria(Categoria categoria) {
|
||||
this.categoria = categoria;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue