nerdexam
Oracle

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…

EJB Lite

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)
  • A
    3% (1)
  • B
    9% (3)
  • C
    73% (24)
  • D
    15% (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

#JPA static metamodel#ListAttribute#entity attribute#criteria API

Community Discussion

No community discussion yet for this question.

Full 1Z0-898 Practice