- 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