Example usage for org.hibernate.internal SessionImpl close

List of usage examples for org.hibernate.internal SessionImpl close

Introduction

In this page you can find the example usage for org.hibernate.internal SessionImpl close.

Prototype

@Override
    @SuppressWarnings("StatementWithEmptyBody")
    public void close() throws HibernateException 

Source Link

Usage

From source file:fr.feedreader.hibernate.Liquibase.java

@Override
public void integrate(Metadata mtdt, SessionFactoryImplementor sfi, SessionFactoryServiceRegistry sfsr) {
    SessionImpl session = ((SessionImpl) sfi.openSession());
    update(session.connection());/*from  w  w w  .  java  2 s .co  m*/
    session.close();
}