Tuesday, 15 November 2016

Hibernate

Hibernate topics

1. Basics


1.1 JDBC may not fits every time
1.2 How Hibernate fits
1.3 Why Hibernate
1.4 What is Hibernate
1.5 Is Hibernate works like a JDBC?
1.6 Difference b/w JDBC & Hibernate
2. Why hibernate


2.1 Store the objects
2.2 Load the objects
3. Architecture


3.1 Architecture overview
4. Files in Hibernate


4.1 Mapping file
4.2 Configuration file
5. To do program



5.1 POJO class
5.2 Mapping xml file
5.3 Configuration xml file
5.4 Java file to write our logic
6. Basic programs


6.1 Create table
6.2 Select an object
6.3 Delete an object
6.4 Update an object
7. POJO life cycle


7.1 Transient
7.2 Persistent
7.3 Detached
8. Inheritance


8.1 Hibernate inheritance
8.2 Table per class
8.3 Table per subclass
8.4 Table per concrete class
9. Generators


9.1 assigned
9.2 increment
9.3 sequence
9.4 identity
9.5 hilo
9.6 native
9.7 foreign
9.8 uuid.hex
9.9 uuid.string
10. HQL


10.1 Hibernate Query language
10.2 HQL commands
11. Hibernate Criteria


11.1 What it is?
12. Relationships


12.1 One to One
12.2 One to Many
12.3 Many to One
12.4 Many to Many
13. Cache


13.1 What is cache
13.2 First level cache
13.3 Second level cache
14. Annotations


14.1 What is hibernate annotations
14.2 Annotations list
14.3 Second level cache
15. Differences


15.1 get() and load() methods
15.2 save() and persist() methods
15.3 merge() and update() methods