Course ob Ject Model <enumeration>> Gender female ma⊥e +course Course eacher tname tname string +totalStudent s <<dat aType>> Address +postCode Normalcourse OnlineCours +classroomname tURL
Course Object Model
Persistence tasks Class mapping a Class to Table mapping a Object id to Primary Key Attribute Mapping a Primary Attribute to column a User defined data type to embedded type Inheritance Mapping Relationship Mapping a One to Many a many to one
Persistence Tasks ◼ Class mapping ❑ Class to Table mapping ❑ Object ID to Primary Key ◼ Attribute Mapping ❑ Primary Attribute to Column ❑ User defined data type to embedded type ◼ Inheritance Mapping ◼ Relationship Mapping ❑ One to Many ❑ Many to One
Persistence/ Concurrency Pattern Introduced Martin fowlery《企业应用架构模式》
Persistence /Concurrency Pattern Introduced Martin Fowler《企业应用架构模式》
Persistence What is persistence a Why Persistence is Importance History of persistence a Plan text 口RDB(OODB? D XML
Persistence ◼ What is Persistence ◼ Why Persistence is Importance ◼ History of persistence ❑ Plan text ❑ RDB(OODB?) ❑ XML
Mapping to a relational database Metadata Mapping Identity Field lazy load Query Object
Mapping to a Relational Database ◼ Metadata Mapping ◼ Identity Field ◼ Lazy Load ◼ Query Object