This content has been marked as final.
Show 3 replies
-
1. Re: How to get jdbc connection in Hibernate 4
ohmygod Jul 5, 2012 5:33 AM (in response to ohmygod)Does somebody know how to get a jdbc connection using the properties to replace this line?
ConnectionProvider connectionProvider = ConnectionProviderFactory.newConnectionProvider(properties);
-
2. Re: How to get jdbc connection in Hibernate 4
ohmygod Jul 13, 2012 2:34 AM (in response to ohmygod)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?
-
3. Re: How to get jdbc connection in Hibernate 4
jaikiran Jul 13, 2012 2:49 AM (in response to ohmygod)Questions related to Hibernate specific API are better answered in the Hibernate forums https://forum.hibernate.org/viewforum.php?f=1&start=0