nerdexam
Oracle

1Z0-898 · Question #4

1Z0-898 Question #4: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-898 to reveal the answer and full explanation for question #4. The question stem and answer options stay visible for context.

Question

The Contact Information embeddable class contains address information as well as a reference to a phone entity. The ContactInformation class is defined as follows: @Embeddable public class ContactInformation { String street; String city; @OneToOne Phone phone; } The developer wants to use this class in an Employee entity, but override the default name of the foreign key to the Phone entity. Which of the code segments shows how to do this correctly?

Options

  • A@Entity public class Employee {
  • B@AssociationOverride (name = "empInfo.phone", joinColumn = "INFO_FK")
  • C@ AssociationOverride (name = "empInfo.phone", joinColumn = "INFO_FK")
  • DEntity public class Employee {

Unlock 1Z0-898 to see the answer

You've previewed enough free 1Z0-898 questions. Unlock 1Z0-898 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-898 Practice