2 * To change this template, choose Tools | Templates
\r
3 * and open the template in the editor.
\r
5 package org.ufcspa.simdecs.entidade;
\r
8 import java.io.Serializable;
\r
9 import javax.persistence.*;
\r
16 @Table(name="NivelConfianca")
\r
17 public class NivelConfianca implements Serializable {
\r
18 private static final long serialVersionUID = 1L;
\r
20 @SequenceGenerator(name="seqNivelConfianca", sequenceName="SQNIVCON")
\r
21 @GeneratedValue(strategy=GenerationType.AUTO, generator="seqNivelConfianca")
\r
23 private Long Codigo;
\r
26 private String Nome;
\r
30 private String Descricao;
\r
33 public Long getCodigo() { return this.Codigo; }
\r
34 public void setCodigo(Long Codigo) { this.Codigo = Codigo; }
\r
35 public String getNome() { return this.Nome; }
\r
36 public void setNome(String Nome) { this.Nome = Nome; }
\r
37 public String getDescricao() { return this.Descricao; }
\r
38 public void setDescricao(String Descricao) { this.Descricao = Descricao; }
\r
42 public int hashCode() {
\r
44 hash += (Codigo != null ? Codigo.hashCode() : 0);
\r
49 public boolean equals(Object object) {
\r
50 // TODO: Warning - this method won't work in the case the id fields are not set
\r
51 if (!(object instanceof NivelConfianca)) {
\r
54 NivelConfianca other = (NivelConfianca) object;
\r
55 if ((this.Codigo == null && other.Codigo != null) || (this.Codigo != null && !this.Codigo.equals(other.Codigo))) {
\r
62 public String toString() {
\r
63 return "org.ufcspa.simdecs.entidade.NivelConfianca[ Codigo=" + Codigo + " ]";
\r