33d1f42f |
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 |
33d1f42f |
6 | import java.io.Serializable;\r |
33d1f42f |
7 | import javax.persistence.*;\r |
aa9088cf |
8 | \r |
33d1f42f |
9 | \r |
10 | /**\r |
11 | *\r |
12 | * @author pbarros\r |
13 | */\r |
14 | @Entity\r |
aa9088cf |
15 | @Table(name="TaticasMediador")\r |
16 | public class TaticasMediador implements Serializable {\r |
33d1f42f |
17 | private static final long serialVersionUID = 1L;\r |
18 | \r |
aa9088cf |
19 | @SequenceGenerator(name="seqTaticasMediador", sequenceName="SQTATMED")\r |
20 | @GeneratedValue(strategy=GenerationType.AUTO, generator="seqTaticasMediador")\r |
33d1f42f |
21 | @Id\r |
aa9088cf |
22 | private Long Codigo;\r |
33d1f42f |
23 | \r |
aa9088cf |
24 | @Column(length=50)\r |
25 | private String Tatica;\r |
33d1f42f |
26 | \r |
33d1f42f |
27 | \r |
aa9088cf |
28 | @Column(length=50)\r |
29 | private String Problema;\r |
33d1f42f |
30 | \r |
aa9088cf |
31 | @Column(length=500)\r |
32 | private String MensagemArgumento ;\r |
33d1f42f |
33 | \r |
34 | \r |
aa9088cf |
35 | public Long getCodigo() { return this.Codigo; }\r |
36 | public void setCodigo(Long Codigo) { this.Codigo = Codigo; }\r |
37 | public String getTatica() { return this.Tatica; }\r |
38 | public void setTatica(String Tatica) { this.Tatica = Tatica; }\r |
39 | public String getProblema() { return this.Problema; }\r |
40 | public void setProblema(String Problema) { this.Problema = Problema; }\r |
41 | public String getMensagemArgumento() { return this.MensagemArgumento; }\r |
42 | public void setMensagemArgumento(String MensagemArgumento) { this.MensagemArgumento = MensagemArgumento; }\r |
33d1f42f |
43 | \r |
33d1f42f |
44 | \r |
45 | \r |
46 | @Override\r |
47 | public int hashCode() {\r |
48 | int hash = 0;\r |
aa9088cf |
49 | hash += (Codigo != null ? Codigo.hashCode() : 0);\r |
33d1f42f |
50 | return hash;\r |
51 | }\r |
52 | \r |
53 | @Override\r |
54 | public boolean equals(Object object) {\r |
55 | // TODO: Warning - this method won't work in the case the id fields are not set\r |
aa9088cf |
56 | if (!(object instanceof TaticasMediador)) {\r |
33d1f42f |
57 | return false;\r |
58 | }\r |
aa9088cf |
59 | TaticasMediador other = (TaticasMediador) object;\r |
60 | if ((this.Codigo == null && other.Codigo != null) || (this.Codigo != null && !this.Codigo.equals(other.Codigo))) {\r |
33d1f42f |
61 | return false;\r |
62 | }\r |
63 | return true;\r |
64 | }\r |
65 | \r |
66 | @Override\r |
67 | public String toString() {\r |
aa9088cf |
68 | return "org.ufcspa.simdecs.entidade.TaticasMediador[ Codigo=" + Codigo + " ]";\r |
33d1f42f |
69 | }\r |
70 | \r |
71 | }\r |