JBoss AS Question:

Which Hibernate object wraps the JDBC Connection?

JBoss Interview Question
JBoss Interview Question

Answer:

The Session interface wraps a JDBC Connection. This interface is a single threaded object which represents a single unit of work with application and persistent database. It's retrieved by the SessionFactory's openSession() method


Previous QuestionNext Question
What is the difference between Hibernate and EJB 3? Do not you think EJB 3 is just a clone of Hibernate?Is the Session Factory Thread safe?