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()
|
@ManyToOne()
|
||||||
private GrupoCategoria grupoCategoria;
|
private GrupoCategoria grupoCategoria;
|
||||||
|
|
||||||
|
@OneToMany(mappedBy = "categoria", cascade = CascadeType.ALL)
|
||||||
|
private List<OrgaoConcedente> orgaosConcedentes;
|
||||||
|
|
||||||
@Column(name = "INDCONFERENCIAFISICACOMISSAO")
|
@Column(name = "INDCONFERENCIAFISICACOMISSAO")
|
||||||
private Boolean indconferenciafisicacomissao;
|
private Boolean indconferenciafisicacomissao;
|
||||||
|
|
||||||
|
@ -227,5 +230,13 @@ public class Categoria implements Serializable {
|
||||||
public void setIndnaousaassento(Boolean indnaousaassento) {
|
public void setIndnaousaassento(Boolean indnaousaassento) {
|
||||||
this.indnaousaassento = 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;
|
package com.rjconsultores.ventaboletos.entidad;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import javax.persistence.Basic;
|
import javax.persistence.Basic;
|
||||||
|
@ -16,7 +17,7 @@ import javax.persistence.TemporalType;
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "GRUPO_CATEGORIA_SEQ", sequenceName = "GRUPO_CATEGORIA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "GRUPO_CATEGORIA_SEQ", sequenceName = "GRUPO_CATEGORIA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "GRUPO_CATEGORIA")
|
@Table(name = "GRUPO_CATEGORIA")
|
||||||
public class GrupoCategoria {
|
public class GrupoCategoria implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Id
|
@Id
|
||||||
@Basic(optional = false)
|
@Basic(optional = false)
|
||||||
|
|
|
@ -13,6 +13,8 @@ import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.GenerationType;
|
import javax.persistence.GenerationType;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.JoinColumn;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
import javax.persistence.OneToMany;
|
import javax.persistence.OneToMany;
|
||||||
import javax.persistence.SequenceGenerator;
|
import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
|
@ -54,6 +56,11 @@ public class OrgaoConcedente implements Serializable {
|
||||||
private BigDecimal indicePeaje;
|
private BigDecimal indicePeaje;
|
||||||
@Column(name = "IDADE_IDOSO")
|
@Column(name = "IDADE_IDOSO")
|
||||||
private Integer idadeIdoso;
|
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)
|
@OneToMany(mappedBy = "orgaoConcedente", cascade = CascadeType.ALL)
|
||||||
private List<ClasseIndicePeaje> classesIndicePeaje;
|
private List<ClasseIndicePeaje> classesIndicePeaje;
|
||||||
|
@ -174,6 +181,22 @@ public class OrgaoConcedente implements Serializable {
|
||||||
|
|
||||||
public void setClassesIndicePeaje(List<ClasseIndicePeaje> classesIndicePeaje) {
|
public void setClassesIndicePeaje(List<ClasseIndicePeaje> classesIndicePeaje) {
|
||||||
this.classesIndicePeaje = 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
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue