Oracle
1Z0-860 · Question #232
Given: 11.〦ntity public class X{ 12. @ld int id; 13. Y y; 14.} A public class Y with NO Java Persistence annotations is defined in the same package. Which statement is correct about these classes if…
The correct answer is A. Class Y must be serializable. See the full explanation below for the reasoning.
Question
Given: 11.〦ntity public class X{ 12. @ld int id; 13. Y y; 14.} A public class Y with NO Java Persistence annotations is defined in the same package. Which statement is correct about these classes if NO other annotations and mapping descriptors are provided?
Options
- AClass Y must be serializable.
- BClass Y must be marked as an entity.
- CThe entity X is notdefined correctly. The field y must be marked as @Lob.
- DClass Y must be accessed by a persistence application through a public interface.
How the community answered
(43 responses)- A77% (33)
- B12% (5)
- C2% (1)
- D9% (4)
Community Discussion
No community discussion yet for this question.