- EJB 3 Developer Guide
- Michael Sikora
- 115字
- 2021-07-02 11:34:57
Summary
Entities do not exist in isolation but are usually associated with other entities. This chapter examined how we map these associations onto a relational database. We first looked at an example with unidirectional one-to-one, one-to-many, and many-to-many associations. We described the @OneToOne, @OneToMany
and @ManyToMany
annotations for mapping associations to a relational database. Initially we relied on default object/relational mapping values.
We then described a bidirectional example and showed how we could override default object/relational mapping values.
We described eager and lazy loading mechanisms. We gave examples of the @Embedded, @Embeddable, @Enumerated
and @MapKey
annotations. We saw how to handle composite primary keys.
Finally we looked at a number of object/relational inheritance mapping strategies.
- 玩轉微信
- AI繪畫教程:Midjourney使用方法與技巧從入門到精通
- Instant MuseScore
- SPSS 28.0統計分析從入門到精通(升級版)
- 二維計算機繪圖教程:二維CAD工程師取證全程指導
- 剪映短視頻剪輯與運營全攻略:視頻剪輯+音頻處理+后期特效+運營管理
- SPSS統計分析
- After Effects印象 影視高級特效光影篇
- Flash CS5動畫設計教程
- Web Host Manager Administration Guide
- AutoCAD 2019中文版完全自學手冊(標準版)
- 工作型PPT該這樣做
- Photoshop 圖形圖像處理
- Photoshop CC 2015課堂實錄
- Mastercam軟件應用技術基礎(X2版)