Adicionado classificaĆ§Ć£o do log conforme exemplo
[simdecs.git] / src / java / org / ufcspa / simdecs / entidade / RespostaMediador.java
... / ...
CommitLineData
1/*\r
2 * To change this template, choose Tools | Templates\r
3 * and open the template in the editor.\r
4 */\r
5package org.ufcspa.simdecs.entidade;\r
6\r
7import java.io.Serializable;\r
8import java.util.Date;\r
9import javax.persistence.*;\r
10import javax.validation.constraints.NotNull;\r
11import javax.validation.constraints.Size;\r
12\r
13/**\r
14 *\r
15 * @author pbarros\r
16 */\r
17@Entity\r
18@Table(name="RespostaMediador")\r
19public class RespostaMediador implements Serializable {\r
20 private static final long serialVersionUID = 1L;\r
21 \r
22 @SequenceGenerator(name="seqRespMediador", sequenceName="SQRESPM")\r
23 @GeneratedValue(strategy=GenerationType.AUTO, generator="seqRespMediador")\r
24 @Id\r
25 private Long id;\r
26 \r
27 @Column(length=255)\r
28 private String resposta;\r
29 \r
30 \r
31 @Column(length=255)\r
32 private String endArquivo;\r
33 \r
34 @Column \r
35 private Long idUsuario;\r
36 \r
37 @Column (nullable=true)\r
38 @Temporal(TemporalType.DATE)\r
39 private Date dataResposta;\r
40 \r
41 \r
42\r
43 public Long getId() { return this.id; }\r
44 public void setId(Long id) { this.id = id; }\r
45 public String getNome() { return this.resposta; }\r
46 public void setNome(String name) { this.resposta = resposta; }\r
47 public String getEndArquivo() { return this.endArquivo; }\r
48 public void setEndArquivo(String endArquivo) { this.endArquivo = endArquivo; }\r
49 public Long getIdUsuario() { return this.idUsuario; }\r
50 public void setIdUsuario(Long idUsuario) { this.idUsuario = idUsuario; }\r
51 public Date getDataResposta() { return this.dataResposta; }\r
52 public void setDataResposta(Date dataResposta) { this.dataResposta = dataResposta; }\r
53 \r
54 \r
55 @Override\r
56 public int hashCode() {\r
57 int hash = 0;\r
58 hash += (id != null ? id.hashCode() : 0);\r
59 return hash;\r
60 }\r
61\r
62 @Override\r
63 public boolean equals(Object object) {\r
64 // TODO: Warning - this method won't work in the case the id fields are not set\r
65 if (!(object instanceof RespostaMediador)) {\r
66 return false;\r
67 }\r
68 RespostaMediador other = (RespostaMediador) object;\r
69 if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r
70 return false;\r
71 }\r
72 return true;\r
73 }\r
74\r
75 @Override\r
76 public String toString() {\r
77 return "org.ufcspa.simdecs.entidade.RespostaMediador[ id=" + id + " ]";\r
78 }\r
79 \r
80}\r