Multiple choice technology programming languages

A container-managed persistence (CMP) entity bean A has a one-to-many unidirectional relationship (CMR) to another container-managed persistence (CMP) entity bean B. Which interface can expose the methods related to this relationship?

  1. Only local interface of bean A

  2. Local interfaces of both beans A and B

  3. Only local home interface of bean A

  4. Local home interfaces of both beans A and B

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In a unidirectional one-to-many CMR relationship where A owns the relationship to B, only bean A's local interface exposes the relationship methods (abstract getter/setter for the collection of B). Bean B has no knowledge of the relationship in unidirectional CMR.