br.com.jbc.db
Class HibernateUtil

java.lang.Object
  extended by br.com.jbc.db.HibernateUtil

public class HibernateUtil
extends java.lang.Object

Fábrica de sessão hibernate que lê informações do arquivo hibernate.cfg que deverá estar na raiz do projeto que estiver usando este framework


Constructor Summary
HibernateUtil()
           
 
Method Summary
static org.hibernate.Session getSession()
          Abre e retorna a Sessão Hibernate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateUtil

public HibernateUtil()
Method Detail

getSession

public static org.hibernate.Session getSession()
Abre e retorna a Sessão Hibernate

Returns:
Session


Free Web Hosting