Dashboard > Knowledge Base > Home > Coding Cookbook Baby Growth Chart | Bing's Space | Bing's Blog | Photo Album
  Knowledge Base Log In   View a printable version of the current page.  
  Coding Cookbook

This is the home page for the Knowledge Base space.

Added by Bing Zou, last edited by Bing Zou on Aug 11, 2008
Labels: 
(None)

Get Hibernate Session from Spring JPA

private Session getCurrentHibernateSession(){
		return (Session)jpaTemplate.execute(new JpaCallback() {
		    public Object doInJpa(EntityManager entityManager) throws PersistenceException {
		        return  (Session)entityManager.getDelegate();
		    }
		});
	}
This site is powered by a free Atlassian Confluence Personal Server License. Evaluate Confluence for your organisation or read more about Confluence licensing here.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators
Wanna try out Confluence? Follow the step by step tutorial or Download the Confluence Virtual Machine with 2-minute setup