Does somebody know how to get a jdbc connection using the properties to replace this line?
ConnectionProvider connectionProvider = ConnectionProviderFactory.newConnectionProvider(properties);
No one has a clue for this problem?
Another similar question is how to get a jdbc connection by a given session? In Hibernate 3, it is easy to get a connection by session.connection() method. I know there is a session.doWork() method but it only does things in the execute() method. How can I get the connection and use it outside of the execute() method?