To close out this chapter, this section discusses the entity bean relationships. The entity beans are allowed to link to other entities through a single value or collection references. The relationships can be bidirectional or unidirectional.
We will cover the more advanced examples of the entity relationship, including the differences between unidirectional and bidirectional, in the next chapter.
@javax.persistence.OneToOne relationship is a direct association between one entity bean and another. The relationship can be expressed at either one or both entities. If each of the entities can refer to the other, then the relationship is bidirectional, otherwise, it is a unidirectional ...