package br.gov.mj.sislegis.app.model;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
@Entity
@XmlRootElement
@Table(name = "tipo_encaminhamento")
public class TipoEncaminhamento extends AbstractEntity {
private static final long serialVersionUID = -678638303472923926L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id", updatable = false, nullable = false)
private Long id;
@Column
private String nome;
public Long getId() {
return this.id;
}
public void setId(final Long id) {
this.id = id;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
@Override
public String toString() {
String result = getClass().getSimpleName() + " ";
if (nome != null && !nome.trim().isEmpty())
result += "nome: " + nome;
return result;
}
}