title: How to get jdbc connection from hibernate session?
body: <p>I want to get jdbc connection from hibernate session.There is  method inside hibernate session
  i.e session.connection(); but it has been deprecated. i know this works still but i dont want to use deprecated method as i am sure they must have provide some alternative for this?
  At <a href="http://docs.jboss.org/hibernate/orm/3.5/api/org/hibernate/Session.html">http://docs.jboss.org/hibernate/orm/3.5/api/org/hibernate/Session.html</a> connection method api says using org.hibernate.jdbc.Work for this purpose but i dont find any example for that?</p>