Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 106 | espaco | 1 | package br.com.ec.domain.model; |
| 2 | |||
| 3 | import java.io.Serializable; |
||
| 4 | |||
| 5 | import javax.persistence.Column; |
||
| 6 | |||
| 7 | //@Entity |
||
| 8 | //@Table(name="sec_assistencia", schema="sc_sec") |
||
| 9 | public class AssistenciaItemTeste implements Serializable { |
||
| 10 | |||
| 11 | private static final long serialVersionUID = 1L; |
||
| 12 | |||
| 13 | private Long sequencial; |
||
| 14 | private String questionario; |
||
| 15 | private Boolean ativo; |
||
| 16 | |||
| 17 | // @Id |
||
| 18 | // @GeneratedValue(strategy = GenerationType.IDENTITY) |
||
| 19 | // @Column(name="seq_assistencia", nullable=false) |
||
| 20 | public Long getSequencial() { |
||
| 21 | return sequencial; |
||
| 22 | } |
||
| 23 | public void setSequencial(Long sequencial) { |
||
| 24 | this.sequencial = sequencial; |
||
| 25 | } |
||
| 26 | |||
| 27 | @Column(name="dsc_questionario") |
||
| 28 | public String getQuestionario() { |
||
| 29 | return questionario; |
||
| 30 | } |
||
| 31 | public void setQuestionario(String questionario) { |
||
| 32 | this.questionario = questionario; |
||
| 33 | } |
||
| 34 | |||
| 35 | @Column(name="ind_ativo") |
||
| 36 | public Boolean getAtivo() { |
||
| 37 | return ativo; |
||
| 38 | } |
||
| 39 | public void setAtivo(Boolean ativo) { |
||
| 40 | this.ativo = ativo; |
||
| 41 | } |
||
| 42 | |||
| 43 | @Override |
||
| 44 | public int hashCode() { |
||
| 45 | final int prime = 31; |
||
| 46 | int result = 1; |
||
| 47 | result = prime * result + ((sequencial == null) ? 0 : sequencial.hashCode()); |
||
| 48 | return result; |
||
| 49 | } |
||
| 50 | |||
| 51 | @Override |
||
| 52 | public boolean equals(Object obj) { |
||
| 53 | if (this == obj) |
||
| 54 | return true; |
||
| 55 | if (obj == null) |
||
| 56 | return false; |
||
| 57 | if (getClass() != obj.getClass()) |
||
| 58 | return false; |
||
| 59 | AssistenciaItemTeste other = (AssistenciaItemTeste) obj; |
||
| 60 | if (sequencial == null) { |
||
| 61 | if (other.sequencial != null) |
||
| 62 | return false; |
||
| 63 | } else if (!sequencial.equals(other.sequencial)) |
||
| 64 | return false; |
||
| 65 | return true; |
||
| 66 | } |
||
| 67 | |||
| 68 | } |