Exam 1z0-900 All QuestionsBrowse all questions from this exam
Question 20

Given the code fragments:

Which action completes this composite primary key implementation?

    Correct Answer: C

    To complete this composite primary key implementation, it is necessary to link the @IdClass annotation at the entity level class (Contact). This defines the ContactId class as the composite primary key class for the Contact entity. Therefore, adding @IdClass(ContactId.class) annotation at line 2 correctly completes the composite primary key implementation.

Discussion
ciellaf5Option: C

Correct C

orjavaOption: C

Answer C