Which statement is correct about these classes if NO other annotations and mapping descriptors are provided?

Given:
11.©Entity 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?

Given:
11.©Entity 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?

A.
Class Y must be serializable.

B.
ClassYmust be marked as an entity.

C.
The entity X is notdefinedcorrectly.The field y must be marked as @Lob.

D.
ClassY must be accessedbyapersistenceapplication throughapublicinterface.



Leave a Reply 0

Your email address will not be published. Required fields are marked *