ImplementaĆ§Ć£o dos registros de Log de eventos!
[simdecs2.git] / src / java / org / ufcspa / simdecs / entities / TaticaPedagogica.java
1 /*
2  * To change this template, choose Tools | Templates
3  * and open the template in the editor.
4  */
5 package org.ufcspa.simdecs.entities;
6
7 import java.io.Serializable;
8 import javax.persistence.Column;
9 import javax.persistence.Entity;
10 import javax.persistence.GeneratedValue;
11 import javax.persistence.GenerationType;
12 import javax.persistence.Id;
13
14 /**
15  *
16  * @author maroni
17  */
18 @Entity
19 public class TaticaPedagogica implements Serializable {
20     private static final long serialVersionUID = 1L;
21
22     @Id
23     @GeneratedValue(strategy = GenerationType.AUTO)
24     private Long id;
25
26     public Long getId() {
27         return id;
28     }
29
30     public void setId(Long id) {
31         this.id = id;
32     }
33     
34     @Column(length=10, nullable=false)
35     private String problema;
36     
37     @Column(length=10, nullable=false)
38     private String estrategia;
39     
40     @Column(length=200, nullable=false)
41     private String assunto;
42     
43     @Column(length=32767, nullable=false)
44     private String mensagem;
45     
46     @Override
47     public int hashCode() {
48         int hash = 0;
49         hash += (id != null ? id.hashCode() : 0);
50         return hash;
51     }
52
53     @Override
54     public boolean equals(Object object) {
55         // TODO: Warning - this method won't work in the case the id fields are not set
56         if (!(object instanceof TaticaPedagogica)) {
57             return false;
58         }
59         TaticaPedagogica other = (TaticaPedagogica) object;
60         if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
61             return false;
62         }
63         return true;
64     }
65
66     @Override
67     public String toString() {
68         return "org.ufcspa.simdecs.entities.TaticaPedagogica[ id=" + id + " ]";
69     }
70
71     public String getAssunto() {
72         return assunto;
73     }
74
75     public void setAssunto(String assunto) {
76         this.assunto = assunto;
77     }
78
79     public String getEstrategia() {
80         return estrategia;
81     }
82
83     public void setEstrategia(String estrategia) {
84         this.estrategia = estrategia;
85     }
86
87     public String getMensagem() {
88         return mensagem;
89     }
90
91     public void setMensagem(String mensagem) {
92         this.mensagem = mensagem;
93     }
94
95     public String getProblema() {
96         return problema;
97     }
98
99     public void setProblema(String problema) {
100         this.problema = problema;
101     }
102     
103     
104     
105 }