1Z0-898 · Question #1
The developer has defined the following entity class office: Which of the following attributes will be in corresponding generated static metamodel class for the rooms' field?
The correct answer is C. Public static volatile ListAttribute<Office, Room> rooms. Annotation Type OneToMany Defines a many-valued association with one-to-many multiplicity. Interface ListAttribute<X,E> Type Parameters: X - The type the represented List belongs to E - The element type of the represented List not A: A collection cannot reprecent a one to many…
Question
The developer has defined the following entity class office:
Which of the following attributes will be in corresponding generated static metamodel class for the rooms' field?
Options
- APublic static volatile CollectionAttribute<Room> rooms;
- BPublic static volatile ListAttribute<Room> rooms;
- CPublic static volatile ListAttribute<Office, Room> rooms;
- DPublic static volatile SingleAttribute<Room> rooms;
How the community answered
(33 responses)- A3% (1)
- B9% (3)
- C73% (24)
- D15% (5)
Explanation
*Annotation Type OneToMany Defines a many-valued association with one-to-many multiplicity. *Interface ListAttribute<X,E> Type Parameters: X - The type the represented List belongs to E - The element type of the represented List not A: A collection cannot reprecent a one to many relationship.
Topics
Community Discussion
No community discussion yet for this question.