2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
5 package org.ufcspa.simdecs.entities;
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;
19 public class TaticaPedagogica implements Serializable {
20 private static final long serialVersionUID = 1L;
23 @GeneratedValue(strategy = GenerationType.AUTO)
30 public void setId(Long id) {
34 @Column(length=10, nullable=false)
35 private String problema;
37 @Column(length=10, nullable=false)
38 private String estrategia;
40 @Column(length=200, nullable=false)
41 private String assunto;
43 @Column(length=32767, nullable=false)
44 private String mensagem;
47 public int hashCode() {
49 hash += (id != null ? id.hashCode() : 0);
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)) {
59 TaticaPedagogica other = (TaticaPedagogica) object;
60 if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
67 public String toString() {
68 return "org.ufcspa.simdecs.entities.TaticaPedagogica[ id=" + id + " ]";
71 public String getAssunto() {
75 public void setAssunto(String assunto) {
76 this.assunto = assunto;
79 public String getEstrategia() {
83 public void setEstrategia(String estrategia) {
84 this.estrategia = estrategia;
87 public String getMensagem() {
91 public void setMensagem(String mensagem) {
92 this.mensagem = mensagem;
95 public String getProblema() {
99 public void setProblema(String problema) {
100 this.problema = problema;