- 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.
- Django 1.0 Website Development
- 新媒體美工一冊(cè)通(全彩)
- Capture One 22 Pro高級(jí)實(shí)戰(zhàn)教程
- Building Websites with PHP/Nuke
- Maya 2020 超級(jí)學(xué)習(xí)手冊(cè)
- 中文版Photoshop CS5平面設(shè)計(jì)實(shí)用教程(第2版)
- Premiere Pro基礎(chǔ)與實(shí)戰(zhàn)教程
- Altium Designer 21實(shí)戰(zhàn)從入門到精通
- JBoss Drools Business Rules
- Altium Designer 20 中文版從入門到精通
- Photoshop CS6圖像處理立體化教程
- Hello HarmonyOS!:鴻蒙應(yīng)用開發(fā)從入門到精通
- After Effects CS6 標(biāo)準(zhǔn)教程
- Photoshop CC 從入門到精通
- 設(shè)計(jì)必修課:中文版After Effects CC動(dòng)畫制作+視頻剪輯+特效包裝設(shè)計(jì)教程