Oracle
1Z0-898 · Question #51
Refer to the Exhibit. A developer wants to have booking data stored in the table BOOKING, flight number in table FLIGHTBOOKING, and hotel name in HOTELBOOKING. Which code, inserted at line 11 of…
The correct answer is D. @Inheritance (strategy = JOINED). The InheritanceType.SINGLE_TABLE strategy maps all classes in the hierarchy to the base
Inheritance Strategies
Question
Refer to the Exhibit. A developer wants to have booking data stored in the table BOOKING, flight number in table FLIGHTBOOKING, and hotel name in HOTELBOOKING. Which code, inserted at line 11 of class Booking, is appropriate for his strategy?
Exhibit
Options
- A@Joined
- B@SingleTable
- C@TablePerClass
- D@Inheritance (strategy = JOINED)
- E@Inheritance (strategy = SINGLE_TABLE)
- F@Inheritance (strategy = TABLE_PER_CLASS)
How the community answered
(42 responses)- C2% (1)
- D83% (35)
- E10% (4)
- F5% (2)
Explanation
The InheritanceType.SINGLE_TABLE strategy maps all classes in the hierarchy to the base
Topics
#JOINED strategy#@Inheritance#table per subclass#inheritance mapping
Community Discussion
No community discussion yet for this question.
