Adicionado tabela para classificaĆ§Ć£o de tipo de Log.
[simdecs.git] / src / java / org / ufcspa / simdecs / entidade / TipoEventoLog.java
1 /*\r
2  * To change this template, choose Tools | Templates\r
3  * and open the template in the editor.\r
4  */\r
5 package org.ufcspa.simdecs.entidade;\r
6 \r
7 import java.io.Serializable;\r
8 import javax.persistence.*;\r
9 import javax.validation.constraints.NotNull;\r
10 import javax.validation.constraints.Size;\r
11 \r
12 /**\r
13  *\r
14  * @author pbarros\r
15  */\r
16 @Entity\r
17 @Table(name="TipoEventoLog")\r
18 public class TipoEventoLog implements Serializable {\r
19     private static final long serialVersionUID = 1L;\r
20     \r
21     @SequenceGenerator(name="seqTipEveLog", sequenceName="SQTPEVLG")\r
22     @GeneratedValue(strategy=GenerationType.AUTO, generator="seqTipEveLog")\r
23     @Id\r
24     private Long id;\r
25     \r
26     @Column(length=255)\r
27     private String nome;\r
28     \r
29     \r
30     \r
31     public Long getId() { return this.id;  }\r
32     public void setId(Long id) { this.id = id; }\r
33     public String getNome() { return this.nome; }\r
34     public void setNome(String name) { this.nome = name; }\r
35 //    public String getEndArquivo() { return this.endArquivo; }\r
36 //    public void setEndArquivo(String endArquivo) { this.endArquivo = endArquivo; }\r
37 //    \r
38     \r
39     @Override\r
40     public int hashCode() {\r
41         int hash = 0;\r
42         hash += (id != null ? id.hashCode() : 0);\r
43         return hash;\r
44     }\r
45 \r
46     @Override\r
47     public boolean equals(Object object) {\r
48         // TODO: Warning - this method won't work in the case the id fields are not set\r
49         if (!(object instanceof TipoEventoLog)) {\r
50             return false;\r
51         }\r
52         TipoEventoLog other = (TipoEventoLog) object;\r
53         if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r
54             return false;\r
55         }\r
56         return true;\r
57     }\r
58 \r
59     @Override\r
60     public String toString() {\r
61         return "org.ufcspa.simdecs.entidade.ArquivoCaso[ id=" + id + " ]";\r
62     }\r
63     \r
64 }\r