diagram of associations
This commit is contained in:
parent
3e187ad82a
commit
1d3f4f47f1
|
@ -825,6 +825,18 @@ An association between entity classes may be either:
|
|||
- _unidirectional_, navigable from `E` to `F` but not from `F` to `E`, or
|
||||
- _bidirectional_, and navigable in either direction.
|
||||
|
||||
In this diagram, we can see the sorts of associations which are possible.
|
||||
|
||||
image::images/associations.png[]
|
||||
|
||||
[TIP]
|
||||
.One-to-one associations and subtyping
|
||||
====
|
||||
An astute observer of the diagram above might notice that the relationships we've represented as unidirectional one-to-one associations could reasonably be represented in Java using subtyping.
|
||||
This is quite normal.
|
||||
A one-to-one association is the usual way we implement subtyping in a fully-normalized relational model.
|
||||
====
|
||||
|
||||
Let's begin with the most common association multiplicity.
|
||||
|
||||
[[many-to-one-unidirectional]]
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 212 KiB |
Loading…
Reference in New Issue