From: pbarros Date: Mon, 13 Feb 2012 16:17:18 +0000 (-0200) Subject: Adicionado tabela para classificação de tipo de Log. X-Git-Url: http://200.18.67.61/gitweb/?p=simdecs.git;a=commitdiff_plain;h=0bdce0ec6aca319721c963c4373c6dfe59592158 Adicionado tabela para classificação de tipo de Log. 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 --- 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 + " ]"; + } + +}