Oracle
1Z0-860 · Question #145
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 not defined 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
(23 responses)- A83% (19)
- B9% (2)
- C4% (1)
- D4% (1)
Community Discussion
No community discussion yet for this question.