nerdexam
Oracle

1Z0-860 · Question #256

1Z0-860 Question #256: Real Exam Question with Answer & Explanation

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

Question

A developer is designing a Java Persistence application that is mapped to a set of existing tables. This set includes table EMPLOYEE, DEPARTMENT, and PROJECT. Tables EMPLOYEE and DEPARTMENT do NOT define any foreign key constraints to table PROJECT. Table PROJECT defines foreign key constraints with references to tables EMPLOYEE and DEPARTMENT and an extra column called COST. The table EMPLOYEE is mapped to an entity Employee and the table DEPARTMENT to an entity Department. How can the table PROJECT be mapped so the persistence application can be portable?

Options

  • ASuch sets of tables cannot be mapped and keep the application portable.
  • BMap the table PROJECT as a secondary table for either the Employee or Department entity.
  • CMap the table PROJECT to bidirectional many-to-many relationships between the Employee and
  • DMa pthe table PROJECT to an entity Project with a field or property cost mapped to the column COST

Unlock 1Z0-860 to see the answer

You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 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-860 Practice