Getting Started with Hibernate technology

Source: Internet
Author: User
  • ORM Principle
    • ORM (Object Relational Mapping) is an object-to-relationship mapping that does an automatic mapping between relational databases and objects, mapping data tables in a database to objects (persisted classes), and manipulating relational databases in the form of objects.
    • Hibernate has 3 important classes: Configuration classes (configurations), Session factory classes (Sessionfactory), session classes (sessions).
  • Instance State of Hibernate
    • Instantaneous state (Transient), persistent State (persistent), managed State (Detached), mastering the relationship between each state, just to better understand the persistence process of the session, Understand the basic additions and deletions in hibernate database.
  • Writing Hibernate initialization classes
    • Because session threads are unsafe, it is easy to confuse data when multiple threads share a Session object, so you should write a thread-safe Hibernate initialization class to prevent the hassle of data sharing.
  • Hibernate cache
    • Primary cache (Session level, also called internal cache) and level two cache (Sessionfactory levels).
  • Session Persistent State transitions
    • When you do most of the session, you need to convert the state of the instance to a persisted state. Because the persistence state is within the main management of the session, it is always associated with the session state (session) and the Thing (Transaction), and when the persisted state object changes, the database operation is not performed immediately and the database is updated only when the food is finished. Ensures that the persistent object of hibernate is synchronized with the database operation again.

Getting Started with Hibernate technology

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.