How Hibernate Works

  1. Read and parse configuration files
  2. Read and parse the mapping information, create a SessionFactory
  3. Open Session
  4. Create a transaction Transaction 5. Persistence operations 6. Commit the transaction
  5. Close Session 8. Close SessionFactory

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325475951&siteId=291194637