- 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.
- 常用工具軟件案例教程
- IBM Cognos 8 Report Studio Cookbook
- 從零開始學LATEX
- Creo Parametric 5.0中文版從入門到精通
- 數(shù)碼攝影后期處理秘笈:Photoshop CC專業(yè)調(diào)色(第2版)
- 下一代空間計算:AR與VR創(chuàng)新理論與實踐
- SPSS統(tǒng)計分析從基礎到實踐
- Photoshop CS6完美創(chuàng)意設計:不一樣的圖像藝術(shù)處理
- UG NX 9中文版從入門到精通
- ASP.NET Core 3從入門到實戰(zhàn)
- HBase企業(yè)應用開發(fā)實戰(zhàn)
- Pluggable Authentication Modules: The Definitive Guide to PAM for Linux SysAdmins and C Developers
- AutoCAD 2016中文版自學視頻教程(標準版)
- 極簡Photoshop CS6:一分鐘學會Photoshop CS6的藝術(shù)
- SPSS統(tǒng)計分析入門與應用精解(視頻教學版)