}
public static Autenticavel autenticar(String usuario, String senha) {
Session session = ConexaoHibernate.getInstance();
Transaction tx = null;
Pessoa p = null;
try {
Query q;
tx = session.beginTransaction();
q = session.createQuery("FROM Pessoa as p where p.email=:usuario and p.senha=:senha");
q.setParameter("usuario", usuario);