/* * 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 + " ]"; } }