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="ArquivoCaso")
\r
18 public class ArquivoCaso implements Serializable {
\r
19 private static final long serialVersionUID = 1L;
\r
21 @SequenceGenerator(name="seqArqCaso", sequenceName="SQARQC")
\r
22 @GeneratedValue(strategy=GenerationType.AUTO, generator="seqArqCaso")
\r
27 private String nome;
\r
31 private String endArquivo;
\r
34 public Long getId() { return this.id; }
\r
35 public void setId(Long id) { this.id = id; }
\r
36 public String getNome() { return this.nome; }
\r
37 public void setNome(String name) { this.nome = name; }
\r
38 public String getEndArquivo() { return this.endArquivo; }
\r
39 public void setEndArquivo(String endArquivo) { this.endArquivo = endArquivo; }
\r
43 public int hashCode() {
\r
45 hash += (id != null ? id.hashCode() : 0);
\r
50 public boolean equals(Object object) {
\r
51 // TODO: Warning - this method won't work in the case the id fields are not set
\r
52 if (!(object instanceof ArquivoCaso)) {
\r
55 ArquivoCaso other = (ArquivoCaso) object;
\r
56 if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
\r
63 public String toString() {
\r
64 return "org.ufcspa.simdecs.entidade.ArquivoCaso[ id=" + id + " ]";
\r