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
7 import java.io.Serializable;
\r
8 import javax.persistence.*;
\r
9 import javax.validation.constraints.NotNull;
\r
10 import javax.validation.constraints.Size;
\r
17 @Table(name="TipoEventoLog")
\r
18 public class TipoEventoLog implements Serializable {
\r
19 private static final long serialVersionUID = 1L;
\r
21 @SequenceGenerator(name="seqTipEveLog", sequenceName="SQTPEVLG")
\r
22 @GeneratedValue(strategy=GenerationType.AUTO, generator="seqTipEveLog")
\r
27 private String nome;
\r
31 public Long getId() { return this.id; }
\r
32 public void setId(Long id) { this.id = id; }
\r
33 public String getNome() { return this.nome; }
\r
34 public void setNome(String name) { this.nome = name; }
\r
35 // public String getEndArquivo() { return this.endArquivo; }
\r
36 // public void setEndArquivo(String endArquivo) { this.endArquivo = endArquivo; }
\r
40 public int hashCode() {
\r
42 hash += (id != null ? id.hashCode() : 0);
\r
47 public boolean equals(Object object) {
\r
48 // TODO: Warning - this method won't work in the case the id fields are not set
\r
49 if (!(object instanceof TipoEventoLog)) {
\r
52 TipoEventoLog other = (TipoEventoLog) object;
\r
53 if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
\r
60 public String toString() {
\r
61 return "org.ufcspa.simdecs.entidade.ArquivoCaso[ id=" + id + " ]";
\r