content: package com.t2ti.fenix.model.cadastros;
  
  import java.io.Serializable;
  import javax.persistence.*;
  import java.util.Date;
  
  
  /**
   * The persistent class for the usuario database table.
   * 
   */
  @Entity
  @NamedQuery(name="Usuario.findAll", query="SELECT u FROM Usuario u")
  public class Usuario implements Serializable {
  	private static final long serialVersionUID = 1L;
  
  	@Id
  	private Integer id;
  
  	private String administrador;
  
  	@Temporal(TemporalType.DATE)
  	@Column(name="DATA_CADASTRO")
  	private Date dataCadastro;
  
  	private String login;
  
  	private String senha;
  
  	//bi-directional many-to-one association to Colaborador
  	@ManyToOne
  	@JoinColumn(name="ID_COLABORADOR")
  	private Colaborador colaborador;
  
  	//bi-directional many-to-one association to Papel
  	@ManyToOne
  	@JoinColumn(name="ID_PAPEL")
  	private Papel papel;
  
  	@Transient
  	private String token;
  	
  	public Usuario() {
  	}
  
  	public Integer getId() {
  		return this.id;
  	}
  
  	public void setId(Integer id) {
  		this.id = id;
  	}
  
  	public String getAdministrador() {
  		return this.administrador;
  	}
  
  	public void setAdministrador(String administrador) {
  		this.administrador = administrador;
  	}
  
  	public Date getDataCadastro() {
  		return this.dataCadastro;
  	}
  
  	public void setDataCadastro(Date dataCadastro) {
  		this.dataCadastro = dataCadastro;
  	}
  
  	public String getLogin() {
  		return this.login;
  	}
  
  	public void setLogin(String login) {
  		this.login = login;
  	}
  
  	public String getSenha() {
  		return this.senha;
  	}
  
  	public void setSenha(String senha) {
  		this.senha = senha;
  	}
  
  	public Colaborador getColaborador() {
  		return this.colaborador;
  	}
  
  	public void setColaborador(Colaborador colaborador) {
  		this.colaborador = colaborador;
  	}
  
  	public Papel getPapel() {
  		return this.papel;
  	}
  
  	public void setPapel(Papel papel) {
  		this.papel = papel;
  	}
  
  	public String getToken() {
  		return token;
  	}
  
  	public void setToken(String token) {
  		this.token = token;
  	}
  
  }