X-Git-Url: http://200.18.67.61/gitweb/?a=blobdiff_plain;f=src%2Fjava%2Forg%2Fufcspa%2Fsimdecs%2Fentidade%2FTipoEventoLog.java;fp=src%2Fjava%2Forg%2Fufcspa%2Fsimdecs%2Fentidade%2FTipoEventoLog.java;h=507345808f1a345be8bd6af6cb427cc3b6c77886;hb=0bdce0ec6aca319721c963c4373c6dfe59592158;hp=0000000000000000000000000000000000000000;hpb=bd970f87c653035219a2c4d7c51afc2a08416adf;p=simdecs.git diff --git a/src/java/org/ufcspa/simdecs/entidade/TipoEventoLog.java b/src/java/org/ufcspa/simdecs/entidade/TipoEventoLog.java new file mode 100644 index 0000000..5073458 --- /dev/null +++ b/src/java/org/ufcspa/simdecs/entidade/TipoEventoLog.java @@ -0,0 +1,64 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package org.ufcspa.simdecs.entidade; + +import java.io.Serializable; +import javax.persistence.*; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; + +/** + * + * @author pbarros + */ +@Entity +@Table(name="TipoEventoLog") +public class TipoEventoLog implements Serializable { + private static final long serialVersionUID = 1L; + + @SequenceGenerator(name="seqTipEveLog", sequenceName="SQTPEVLG") + @GeneratedValue(strategy=GenerationType.AUTO, generator="seqTipEveLog") + @Id + private Long id; + + @Column(length=255) + private String nome; + + + + public Long getId() { return this.id; } + public void setId(Long id) { this.id = id; } + public String getNome() { return this.nome; } + public void setNome(String name) { this.nome = name; } +// public String getEndArquivo() { return this.endArquivo; } +// public void setEndArquivo(String endArquivo) { this.endArquivo = endArquivo; } +// + + @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 TipoEventoLog)) { + return false; + } + TipoEventoLog other = (TipoEventoLog) 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.ArquivoCaso[ id=" + id + " ]"; + } + +}