2. Contents
1
1. Problem, Software history
2. Advantages ORM (Object Relation Mapping)
3. How it works (high level vision)
4. Relation: Eclipse – DataBase – Hibernate
5. Configuration file cfg.xml
6. Mapping files
7. Object States
8. Example
3. Problem, Software history
2
1. SQL sentences into code
Business
Classes Data Base
2. DAO Architecture
Business
Classes
DAO
SQL
Data Base
4. Problem, Software history
3
3. Mapping problem
Business
Classes Data Base
Public class Employee {
private String name;
}
TABLE Employee (
VARCHAR2(50) NAME,
)
5. Advantages ORM (Object Relation Mapping)
4
Advantages:
- Complete database abstraction
- IDE mapping generated for objects-tables relation
- Automatic state change
- Easy configurable through xml
- Implements JPA (Java Persistence Api) standar