From: pbarros Date: Fri, 13 Jan 2012 19:22:25 +0000 (-0200) Subject: adicionado classes definidas por marta e cecilia, que serão utilizadas no agente... X-Git-Url: http://200.18.67.61/gitweb/?a=commitdiff_plain;h=4380125a4af2580f9deb7002655eb78ab3e8a868;hp=060372e8bdf80654a8d19356ff543b1a06c5565a;p=simdecs.git adicionado classes definidas por marta e cecilia, que serão utilizadas no agente mediador --- 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 + " ]"; + } + +}