Show TOC Start of Content Area

Function documentation Many-to-One Unidirectional Relationships  Locate the document in its SAP Library structure

Use

A many-to-one unidirectional relationship differs from a one-to-many bidirectional relationship by the missing field of type java.util.Set on the one side.

The relational model is the same as the relational model for a one-to-many bidirectional relationship.

The mapping metadata for the remaining field of a persistence capable class type is the same as the mapping metadata in the one-to-many bidirectional case.

This mapping pattern is the straightforward way to map a foreign key, which only needs to be navigated from the many to the one side.

See also:

 

One-to-many Bidirectional Relationships

End of Content Area