By private references in EJB object main class.
Application server automatically identifies relationships by foreign keys in
the database
By specifying <relationships> section in the deployment descriptor file.
Container managed entity beans support only 1:1 relationships.
It depends on vendor specific EJB container implementation.
|