Coffee Cram: Mock Exam Answers
What’s true for an entity bean provider using container-managed persistence to create persistent relationships? (Choose all that apply.)

A.
A local interface is required for such a bean to have a bidirectional relationship with another entity bean.

B.
Such a bean can have relationships with only session beans.

C.
Relationships can be only one-to-one or one-to-many.

D.
A getter method return type can be java.util.List.
Note
- must be Collection or Set
What’s true for an entity bean provider using container-managed persistence to create persistent relationships? (Choose all that apply.)

A.
A remote interface is required for such a bean to have a bidirectional relationship with another entity bean.
Note
- must be local

B.
Such a bean can have relationships with only message-driven beans.
C.
A get method return type can use java.util.Map.
Note
- only Collection or Set
D.
Relationships ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access