We have included only the bits of the class that are relevant to our discussion, but you can see from
the previous example that the code was rather anticlimactic. A single annotation was all that was
required to map the relationship, and it turned out to be quite dull, really. Of course, when it comes to
configuration, dull is beautiful.
The same kinds of attribute flexibility and modifier requirements that were described for basic
mappings also apply to relationship mappings. The annotation can be present on either the field or
property, depending on the strategy used for the entity.
đang được dịch, vui lòng đợi..
