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.
Question
Consider a persistence application with the following orm.xml:
What will be the effect of the above orm.xml?
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)- A5% (1)
- B11% (2)
- C16% (3)
- D68% (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
Community Discussion
No community discussion yet for this question.
