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.*;
15 @Table(name="TABELA_RESPOSTA")
16 public class TabelaResposta implements Serializable {
18 private static final long serialVersionUID = 1L;
20 @SequenceGenerator(name="seqTabelaResposta", sequenceName="SQ_TABELA_RESPOSTA")
21 @GeneratedValue(strategy = GenerationType.AUTO, generator="seqTabelaResposta")
24 @Column(nullable=false, length=100)
27 public String getNome() {
31 public void setNome(String nome) {
39 public void setId(Long id) {
46 public int hashCode() {
48 hash += (id != null ? id.hashCode() : 0);
53 public boolean equals(Object object) {
54 // TODO: Warning - this method won't work in the case the id fields are not set
55 if (!(object instanceof TabelaResposta)) {
58 TabelaResposta other = (TabelaResposta) object;
59 if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
66 public String toString() {
67 return "org.ufcspa.simdecs.entities.TabelaResposta[ id=" + id + " ]";