Hibernate 2.x configuration

Java Object creation for Hibernate application:

  • Create a Configuration object

  • Build Session Factory

  • Create a Session object

  • Perform persistent related operations (like CRUD)

  • Transaction

  • Close the session
  • Hibernate Mapping