Java Get Connection Object While Using Sessionfactory

Java Get Connection Object While Using Sessionfactory