Adicionado tabela para classificaĆ§Ć£o de tipo de Log.
[simdecs.git] / src / java / org / ufcspa / simdecs / entidade / TipoEventoLog.java
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