nerdexam
Oracle

1Z0-860 · Question #134

Which statement about mapping using the Java Persistence API is correct?

The correct answer is B. All mapping files other than orm. xml must be listed explicitly in the persistence, xml descriptor. See the full explanation below for the reasoning.

Question

Which statement about mapping using the Java Persistence API is correct?

Options

  • AUser-defined XML mapping files can be used only if orm. xml file is NOT present.
  • BAll mapping files other than orm. xml must be listed explicitly in the persistence, xml descriptor.
  • CMapping information specified in the XML mapping file overrides all annotations and default mappings.
  • DThe orm.xml file must be placed into the persistence unit's root to be processed by the persistence

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    80% (20)
  • C
    4% (1)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice