Given the code fragments:
Which action completes this composite primary key implementation?
Given the code fragments:
Which action completes this composite primary key implementation?
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.
Correct C
Answer C