Commit 1bcaac29d5d816678fa7ca99182dd7163d75bc12

Authored by 96409975520
1 parent 60de583b
Exists in master

Criação da classe responsável por receber o mapeamento das médias das

avaliações.
Desenvolvimento/Codificacao/e-Selo/src/main/java/br/com/eselo/model/GraficoMediaAvaliacao.java 0 → 100644
... ... @@ -0,0 +1,71 @@
  1 +package br.com.eselo.model;
  2 +
  3 +import javax.persistence.Column;
  4 +import javax.persistence.Entity;
  5 +import javax.persistence.Id;
  6 +import javax.persistence.Table;
  7 +
  8 +
  9 +@Entity
  10 +@Table(name = "sel_grafico_media_avaliacao")
  11 +public class GraficoMediaAvaliacao {
  12 +
  13 + @Id
  14 + @Column(name = "id", nullable = false)
  15 + private Long id;
  16 +
  17 + @Column(name = "nome", nullable = true)
  18 + private String nome;
  19 +
  20 + @Column(name = "total", nullable = true)
  21 + private Long total;
  22 +
  23 + @Column(name = "media", nullable = true)
  24 + private double media;
  25 +
  26 + @Column(name = "id_agendamento", nullable = true)
  27 + private String id_agendamento;
  28 +
  29 + public Long getId() {
  30 + return id;
  31 + }
  32 +
  33 + public void setId(Long id) {
  34 + this.id = id;
  35 + }
  36 +
  37 + public String getNome() {
  38 + return nome;
  39 + }
  40 +
  41 + public void setNome(String nome) {
  42 + this.nome = nome;
  43 + }
  44 +
  45 + public Long getTotal() {
  46 + return total;
  47 + }
  48 +
  49 + public void setTotal(Long total) {
  50 + this.total = total;
  51 + }
  52 +
  53 + public double getMedia() {
  54 + return media;
  55 + }
  56 +
  57 + public void setMedia(double media) {
  58 + this.media = media;
  59 + }
  60 +
  61 + public String getIdAgendamento() {
  62 + return id_agendamento;
  63 + }
  64 +
  65 + public void setIdAgendamento(String idAgendamento) {
  66 + this.id_agendamento = idAgendamento;
  67 + }
  68 +
  69 +
  70 +
  71 +}
... ...
Desenvolvimento/Codificacao/e-Selo/src/main/java/br/com/eselo/model/Orgao.java
... ... @@ -47,7 +47,7 @@ public class Orgao {
47 47 private Long id_poder;
48 48  
49 49 @Column(name = "id_tipo_unidade", nullable = false)
50   - private Long id_tipo_unidade;
  50 + private String id_tipo_unidade;
51 51  
52 52 @Column(name = "id_unidade_pai", nullable = false)
53 53 private Long idUnidadePai;
... ... @@ -110,11 +110,11 @@ public class Orgao {
110 110 this.id_poder = id_poder;
111 111 }
112 112  
113   - public Long getId_tipo_unidade() {
  113 + public String getId_tipo_unidade() {
114 114 return id_tipo_unidade;
115 115 }
116 116  
117   - public void setId_tipo_unidade(Long id_tipo_unidade) {
  117 + public void setId_tipo_unidade(String id_tipo_unidade) {
118 118 this.id_tipo_unidade = id_tipo_unidade;
119 119 }
120 120  
... ...