| 1 | /*\r |
| 2 | * To change this template, choose Tools | Templates\r |
| 3 | * and open the template in the editor.\r |
| 4 | */\r |
| 5 | package org.ufcspa.simdecs.entidade;\r |
| 6 | \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 |
| 11 | \r |
| 12 | /**\r |
| 13 | *\r |
| 14 | * @author pbarros\r |
| 15 | */\r |
| 16 | @Entity\r |
| 17 | @Table(name="ArquivoCaso")\r |
| 18 | public class ArquivoCaso implements Serializable {\r |
| 19 | private static final long serialVersionUID = 1L;\r |
| 20 | \r |
| 21 | @SequenceGenerator(name="seqArqCaso", sequenceName="SQARQC")\r |
| 22 | @GeneratedValue(strategy=GenerationType.AUTO, generator="seqArqCaso")\r |
| 23 | @Id\r |
| 24 | private Long id;\r |
| 25 | \r |
| 26 | @Column(length=255)\r |
| 27 | private String nome;\r |
| 28 | \r |
| 29 | \r |
| 30 | @Column(length=255)\r |
| 31 | private String endArquivo;\r |
| 32 | \r |
| 33 | \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 |
| 40 | \r |
| 41 | \r |
| 42 | @Override\r |
| 43 | public int hashCode() {\r |
| 44 | int hash = 0;\r |
| 45 | hash += (id != null ? id.hashCode() : 0);\r |
| 46 | return hash;\r |
| 47 | }\r |
| 48 | \r |
| 49 | @Override\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 |
| 53 | return false;\r |
| 54 | }\r |
| 55 | ArquivoCaso other = (ArquivoCaso) object;\r |
| 56 | if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r |
| 57 | return false;\r |
| 58 | }\r |
| 59 | return true;\r |
| 60 | }\r |
| 61 | \r |
| 62 | @Override\r |
| 63 | public String toString() {\r |
| 64 | return "org.ufcspa.simdecs.entidade.ArquivoCaso[ id=" + id + " ]";\r |
| 65 | }\r |
| 66 | \r |
| 67 | }\r |