From 0bdce0ec6aca319721c963c4373c6dfe59592158 Mon Sep 17 00:00:00 2001 From: pbarros Date: Mon, 13 Feb 2012 14:17:18 -0200 Subject: [PATCH] =?utf8?q?Adicionado=20tabela=20para=20classifica=C3=A7=C3=A3?= =?utf8?q?o=20de=20tipo=20de=20Log.=20Conforme=20solicita=C3=A7=C3=A3o=20Mar?= =?utf8?q?ta=20-=20Iniciar=20simulador=20-=20Sele=C3=A7=C3=A3o=20do=20caso=20?= =?utf8?q?-=20Abertura=20da=20ficha=20do=20paciente=20-=20Sele=C3=A7=C3=A3o=20?= =?utf8?q?de=20perguntas=20(sinais=20e=20sintomas)=20-=20Sele=C3=A7=C3=A3o=20?= =?utf8?q?de=20exames=20complementares=20-=20Sele=C3=A7=C3=A3o=20de=20diagn=C3?= =?utf8?q?=B3stico=20-=20Sele=C3=A7=C3=A3o=20de=20tratamento=20-=20Sele=C3=A7?= =?utf8?q?=C3=A3o=20de=20aux=C3=ADlio=20pedag=C3=B3gico=20(pode=20ser=20de=20?= =?utf8?q?aux=C3=ADlios=20que=20estejam=20direto=20no=20jogo,=20ou=20indicad?= =?utf8?q?os=20pelo=20Mediador)=20-=20Interven=C3=A7=C3=A3o=20do=20Mediador?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/java/org/ufcspa/simdecs/entidade/Log.java | 12 ++++ .../org/ufcspa/simdecs/entidade/TipoEventoLog.java | 64 ++++++++++++++++++++ 2 files changed, 76 insertions(+), 0 deletions(-) create mode 100644 src/java/org/ufcspa/simdecs/entidade/TipoEventoLog.java diff --git a/src/java/org/ufcspa/simdecs/entidade/Log.java b/src/java/org/ufcspa/simdecs/entidade/Log.java index ebf7a1c..7722095 100644 --- a/src/java/org/ufcspa/simdecs/entidade/Log.java +++ b/src/java/org/ufcspa/simdecs/entidade/Log.java @@ -37,6 +37,10 @@ public class Log implements Serializable { @Basic(optional = false) @NotNull @Size(min = 1, max = 200) + + @Column (name = "idTipoLog") + private Long idTipoLog; + @Column(name = "descricaolog") private String descricaolog; @Basic(optional = false) @@ -78,6 +82,14 @@ public class Log implements Serializable { public void setDescricaolog(String descricaolog) { this.descricaolog = descricaolog; } + + public Long getIdTipolog() { + return idTipoLog; + } + + public void setIdTipolog(Long idtipolog) { + this.idTipoLog = idtipolog; + } public long getUsuid() { return usuid; diff --git a/src/java/org/ufcspa/simdecs/entidade/TipoEventoLog.java b/src/java/org/ufcspa/simdecs/entidade/TipoEventoLog.java new file mode 100644 index 0000000..5073458 --- /dev/null +++ b/src/java/org/ufcspa/simdecs/entidade/TipoEventoLog.java @@ -0,0 +1,64 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package org.ufcspa.simdecs.entidade; + +import java.io.Serializable; +import javax.persistence.*; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; + +/** + * + * @author pbarros + */ +@Entity +@Table(name="TipoEventoLog") +public class TipoEventoLog implements Serializable { + private static final long serialVersionUID = 1L; + + @SequenceGenerator(name="seqTipEveLog", sequenceName="SQTPEVLG") + @GeneratedValue(strategy=GenerationType.AUTO, generator="seqTipEveLog") + @Id + private Long id; + + @Column(length=255) + private String nome; + + + + public Long getId() { return this.id; } + public void setId(Long id) { this.id = id; } + public String getNome() { return this.nome; } + public void setNome(String name) { this.nome = name; } +// public String getEndArquivo() { return this.endArquivo; } +// public void setEndArquivo(String endArquivo) { this.endArquivo = endArquivo; } +// + + @Override + public int hashCode() { + int hash = 0; + hash += (id != null ? id.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 TipoEventoLog)) { + return false; + } + TipoEventoLog other = (TipoEventoLog) object; + if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { + return false; + } + return true; + } + + @Override + public String toString() { + return "org.ufcspa.simdecs.entidade.ArquivoCaso[ id=" + id + " ]"; + } + +} -- 1.7.6.4