Adicionado tabela para classificação de tipo de Log.
authorpbarros <pbarros@EDEVELOPER>
Mon, 13 Feb 2012 16:17:18 +0000 (14:17 -0200)
committerpbarros <pbarros@EDEVELOPER>
Mon, 13 Feb 2012 16:17:18 +0000 (14:17 -0200)
Conforme solicitação Marta
- Iniciar simulador
- Seleção do caso
- Abertura da ficha do paciente
- Seleção de perguntas (sinais e sintomas)
- Seleção de exames complementares
- Seleção de diagnóstico
- Seleção de tratamento
- Seleção de auxílio pedagógico (pode ser de auxílios que estejam direto no jogo, ou indicados pelo Mediador)
- Intervenção do Mediador

src/java/org/ufcspa/simdecs/entidade/Log.java
src/java/org/ufcspa/simdecs/entidade/TipoEventoLog.java [new file with mode: 0644]

index ebf7a1c..7722095 100644 (file)
@@ -37,6 +37,10 @@ public class Log implements Serializable {
     @Basic(optional = false)\r
     @NotNull\r
     @Size(min = 1, max = 200)\r
+    \r
+    @Column (name = "idTipoLog")\r
+    private Long idTipoLog;\r
+    \r
     @Column(name = "descricaolog")\r
     private String descricaolog;\r
     @Basic(optional = false)\r
@@ -78,6 +82,14 @@ public class Log implements Serializable {
     public void setDescricaolog(String descricaolog) {\r
         this.descricaolog = descricaolog;\r
     }\r
+    \r
+    public Long getIdTipolog() {\r
+        return idTipoLog;\r
+    }\r
+\r
+    public void setIdTipolog(Long idtipolog) {\r
+        this.idTipoLog = idtipolog;\r
+    }\r
 \r
     public long getUsuid() {\r
         return usuid;\r
diff --git a/src/java/org/ufcspa/simdecs/entidade/TipoEventoLog.java b/src/java/org/ufcspa/simdecs/entidade/TipoEventoLog.java
new file mode 100644 (file)
index 0000000..5073458
--- /dev/null
@@ -0,0 +1,64 @@
+/*\r
+ * To change this template, choose Tools | Templates\r
+ * and open the template in the editor.\r
+ */\r
+package org.ufcspa.simdecs.entidade;\r
+\r
+import java.io.Serializable;\r
+import javax.persistence.*;\r
+import javax.validation.constraints.NotNull;\r
+import javax.validation.constraints.Size;\r
+\r
+/**\r
+ *\r
+ * @author pbarros\r
+ */\r
+@Entity\r
+@Table(name="TipoEventoLog")\r
+public class TipoEventoLog implements Serializable {\r
+    private static final long serialVersionUID = 1L;\r
+    \r
+    @SequenceGenerator(name="seqTipEveLog", sequenceName="SQTPEVLG")\r
+    @GeneratedValue(strategy=GenerationType.AUTO, generator="seqTipEveLog")\r
+    @Id\r
+    private Long id;\r
+    \r
+    @Column(length=255)\r
+    private String nome;\r
+    \r
+    \r
+    \r
+    public Long getId() { return this.id;  }\r
+    public void setId(Long id) { this.id = id; }\r
+    public String getNome() { return this.nome;        }\r
+    public void setNome(String name) { this.nome = name; }\r
+//    public String getEndArquivo() { return this.endArquivo; }\r
+//    public void setEndArquivo(String endArquivo) { this.endArquivo = endArquivo; }\r
+//    \r
+    \r
+    @Override\r
+    public int hashCode() {\r
+        int hash = 0;\r
+        hash += (id != null ? id.hashCode() : 0);\r
+        return hash;\r
+    }\r
+\r
+    @Override\r
+    public boolean equals(Object object) {\r
+        // TODO: Warning - this method won't work in the case the id fields are not set\r
+        if (!(object instanceof TipoEventoLog)) {\r
+            return false;\r
+        }\r
+        TipoEventoLog other = (TipoEventoLog) object;\r
+        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r
+            return false;\r
+        }\r
+        return true;\r
+    }\r
+\r
+    @Override\r
+    public String toString() {\r
+        return "org.ufcspa.simdecs.entidade.ArquivoCaso[ id=" + id + " ]";\r
+    }\r
+    \r
+}\r