Java Reference
In-Depth Information
Order #
Phone #
Email
Wh en
Restaurant
Status
Pa yment
Informat ion
Or d e r
order Number
deliveryTime
status
.. .
Restaurant
phoneNumber
email
.. .
name
<<table>>
PLACED_ORDER
<<table>>
RESTAURANT
ORDER_ID <<pk>>
ORDER_NUMBER
RESTAURANT_ID <<fk>>
PAYMENT_PHONE
PAYMENT_EMAIL
.. .
RESTAURANT_ID <<pk>>
NAME
.. .
Figure 11.4 The relationship between the View Orders screen, the domain model, and the
database schema
Using JDO fetch groups
JDO 2.0 has a powerful fetch group mechanism, which allows the developer to
specify a graph of objects to eagerly load. Here is an example of fetch group for
the Order class that loads some of its fields and the name field of its restaurant:
 
Search WWH ::




Custom Search