3 Replies Latest reply on Jul 13, 2012 2:49 AM by jaikiran pai

    How to get jdbc connection in Hibernate 4

    mike just Master

      In Hibernate 3, we can get jdbc connection with following code

       

      ConnectionProvider connectionProvider = ConnectionProviderFactory.newConnectionProvider(properties);
      Connection connection = connectionProvider.getConnection();
      
      

       

      These classes and apis have been duplicated in Hibernate 4. So the question is how to get the connection in Hibernate 4.