From 4380125a4af2580f9deb7002655eb78ab3e8a868 Mon Sep 17 00:00:00 2001 From: pbarros Date: Fri, 13 Jan 2012 17:22:25 -0200 Subject: [PATCH 1/1] =?utf8?q?adicionado=20classes=20definidas=20por=20marta?= =?utf8?q?=20e=20cecilia,=20que=20ser=C3=A3o=20utilizadas=20no=20agente=20me?= =?utf8?q?diador?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../ufcspa/simdecs/entidade/NivelConfianca.java | 80 ++++++++++++++++++++ 1 files changed, 80 insertions(+), 0 deletions(-) create mode 100644 src/java/org/ufcspa/simdecs/entidade/NivelConfianca.java diff --git a/src/java/org/ufcspa/simdecs/entidade/NivelConfianca.java b/src/java/org/ufcspa/simdecs/entidade/NivelConfianca.java new file mode 100644 index 0000000..0322dc8 --- /dev/null +++ b/src/java/org/ufcspa/simdecs/entidade/NivelConfianca.java @@ -0,0 +1,80 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package org.ufcspa.simdecs.entidade; + +import java.io.Serializable; +import java.util.Date; +import javax.persistence.*; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; + +/** + * + * @author pbarros + */ +@Entity +@Table(name="RespostaMediador") +public class RespostaMediador implements Serializable { + private static final long serialVersionUID = 1L; + + @SequenceGenerator(name="seqRespMediador", sequenceName="SQRESPM") + @GeneratedValue(strategy=GenerationType.AUTO, generator="seqRespMediador") + @Id + private Long id; + + @Column(length=255) + private String resposta; + + + @Column(length=255) + private String endArquivo; + + @Column + private Long idUsuario; + + @Column (nullable=true) + @Temporal(TemporalType.DATE) + private Date dataResposta; + + + + public Long getId() { return this.id; } + public void setId(Long id) { this.id = id; } + public String getNome() { return this.resposta; } + public void setNome(String name) { this.resposta = resposta; } + public String getEndArquivo() { return this.endArquivo; } + public void setEndArquivo(String endArquivo) { this.endArquivo = endArquivo; } + public Long getIdUsuario() { return this.idUsuario; } + public void setIdUsuario(Long idUsuario) { this.idUsuario = idUsuario; } + public Date getDataResposta() { return this.dataResposta; } + public void setDataResposta(Date dataResposta) { this.dataResposta = dataResposta; } + + + @Override + public int hashCode() { + int hash = 0; + hash += (id != null ? id.hashCode() : 0); + return hash; + } + + @Override + public boolean equals(Object object) { + // TODO: Warning - this method won't work in the case the id fields are not set + if (!(object instanceof RespostaMediador)) { + return false; + } + RespostaMediador other = (RespostaMediador) object; + if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { + return false; + } + return true; + } + + @Override + public String toString() { + return "org.ufcspa.simdecs.entidade.RespostaMediador[ id=" + id + " ]"; + } + +} -- 1.7.6.4