nerdexam
Oracle

1Z0-898 · Question #38

Consider a persistence application with the following orm.xml: What will be the effect of the above orm.xml?

The correct answer is D. The access type for only those entities defined in this orm-xml for which access is not specified. Set the default to FIELD-access. Note:persistence-unit-defaults Rule:Full override Description:If a schema setting exists, then the eclipselink-orm.xml schema setting overrides the existing setting or creates a new schema setting.

JPA Fundamentals

Question

Consider a persistence application with the following orm.xml:

What will be the effect of the above orm.xml?

Exhibit

1Z0-898 question #38 exhibit

Options

  • AThe access type for only those entities that have not explicitly specified @Access will be
  • BThe access type for all entities in the persistence unit will be changed to FIELD.
  • CThe access type for all entities specified in this orm.xml will be changed to FIELD.
  • DThe access type for only those entities defined in this orm-xml for which access is not specified

How the community answered

(19 responses)
  • A
    5% (1)
  • B
    11% (2)
  • C
    16% (3)
  • D
    68% (13)

Explanation

Set the default to FIELD-access. Note:persistence-unit-defaults Rule:Full override Description:If a schema setting exists, then the eclipselink-orm.xml schema setting overrides the existing setting or creates a new schema setting.

Topics

#orm.xml#access type override#field access#mapping defaults

Community Discussion

No community discussion yet for this question.

Full 1Z0-898 Practice