nerdexam
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

1Z0-898 question #51 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)
  • C
    2% (1)
  • D
    83% (35)
  • E
    10% (4)
  • F
    5% (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.

Full 1Z0-898 Practice