复旦大学:《面向对象分析和设计》课程资料_UML和模式_Hibernate Persistence

Hibernate persistence
Hibernate Persistence

What is persistence persist data to database or other storage a In Oo world, persistence means persist object to external storage Relational database SQL a Using SQL in Java a Persistence object-oriented applications: ORM
What is Persistence ◼ Persist data to database or other storage. ❑ In OO world, persistence means persist object to external storage. ◼ Relational database ❑ SQL ❑ Using SQL in Java ❑ Persistence object-oriented applications: ORM

What is Hibernate? Popular Open Source(LGPL) Object/Relational Mapping(oRM) tool Transparent persistence for POJOs (Plain Old Java objects Core of JBoss Cmp 2.0 impl
What is Hibernate? ◼ Popular Open Source (LGPL) Object/Relational Mapping (ORM) tool ◼ Transparent persistence for POJOs (Plain Old Java Objects) ◼ Core of JBoss CMP 2.0 impl

Why Hibernate? Minimizes code Does not require a container Model is not tied to persistence implementation, Retains natural object model (transparent)
Why Hibernate? • Minimizes Code • Does not require a container • Model is not tied to persistence implementation, Retains natural object model (transparent)

Object/Relational Mapping Javaobject SOL Table int id; string namei string getName( id [int] primary key, int getId() void setName(string) name [varchar(50) void setId(int) Magic Happens Here (O/R Mapper-1e Hibernate)
Object/Relational Mapping JavaObject int id; String name; String getName() int getId() void setName(String) void setId(int) SQL Table id [int] primary key, name [varchar(50)] Magic Happens Here (O/R Mapper – i.e. Hibernate)

Course ob Ject Model > Gender female ma⊥e +course Course eacher tname tname string +totalStudent s > 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
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_AOP Aspect Oriented Programming.pptx
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_复习:OOAD部分.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 21 测试驱动的开发与重构.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 19 Chapter 20 Chapter 22.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 18 - 使用GRASP的对象设计示例.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 17 - GRASP基于职责设计对象.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 16 - UML类图.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 15 - UML交互图.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 14 - 迈向对象设计.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 13 - 逻辑架构和UML包图.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 11 - 操作契约.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 10 - 系统顺序图.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 9 - 领域模型.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 8 - 细化阶段的迭代——基础.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 7 - 其他需求.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 6 - 用例.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 4 Chapter 5 - 初始阶段的需求.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 3 - 案例分析 THE NEXTGEN POS SYSTEM.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_OOP:Object-Oriented Programming.pptx
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 2 - 迭代、进化和敏捷.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Hibernate 演示场景.pptx
- 复旦大学:《电子商务》课程资源_教学大纲.pdf
- 复旦大学:《电子商务》课程资源_教学案例:The Business Model-Recent Developments and Future Research-JOM2011.pdf
- 复旦大学:《电子商务》课程资源_教学研究:Online Game Addiction among Adolescents_Motivation and Prevention Factors.pdf
- 复旦大学:《电子商务》课程资源_教学研究:Research On The Utility Of An Advanced ACA In Context-Aware Tour Planning System.pdf
- 复旦大学:《电子商务》课程PPT课件_第二次课 电子商务的商业模式与分类.ppt
- 复旦大学:《电子商务》课程PPT课件_第一次课 引言(胥正川).ppt
- 复旦大学:《电子商务》课程PPT课件_第三次课 电子商务过程及相关因素(电子商务创业).ppt
- 复旦大学:《电子商务》课程PPT课件_第四次课 电子商务商业计划书写作 Creating a Winning E-Business Second Edition.ppt
- 复旦大学:《电子商务》课程PPT课件_第七次课 B2C电子商务——网上零售.pptx
- 复旦大学:《电子商务》课程PPT课件_第九次课 B2B电子商务(B2B行业平台).ppt
- 复旦大学:《电子商务》课程PPT课件_第五次课 商业模式的概念与内涵(发现商业模式).ppt
- 复旦大学:《电子商务》课程PPT课件_第八次课 电子商务模式与应用课程主题案例分析与展示——电子商务团购.ppt
- 复旦大学:《电子商务》课程PPT课件_第六次课 电子商务运营与管理 Getting Your E-Business Off The Ground.ppt
- 复旦大学:《电子商务》课程PPT课件_第六次课 电子商务运营与管理 Operating Your E-Business.ppt
- 复旦大学:《电子商务》课程PPT课件_第十次课 社会化电子商务——Hold住社会化媒体营销.ppt
- 复旦大学:《计算机图形学》课后习题答案_1.docx
- 复旦大学:《计算机图形学》课后习题答案_2.docx
- 复旦大学:《计算机图形学》课后习题答案_3.docx
- 复旦大学:《计算机图形学》课后习题答案_4.docx