Oracle
1Z0-860 · Question #12
Which statement is true about the primary key of a Java Persistence entity?
The correct answer is C. If property-based access is used, the properties of the primary key class must be public or protected. See the full explanation below for the reasoning.
Question
Which statement is true about the primary key of a Java Persistence entity?
Options
- AThe primary key cannot be overridden by a mapping descriptor.
- BThe location of the primary key defines the topmost entity class in the hierarchy.
- CIf property-based access is used, the properties of the primary key class must be public or protected.
- DAt least part of a primary key must be defined in the class that is the topmost class of an entity which is
How the community answered
(29 responses)- A14% (4)
- B3% (1)
- C76% (22)
- D7% (2)
Community Discussion
No community discussion yet for this question.