Configuring relationships

Procedure

  1. On the Tasks page of the wizard, select Relationships from the Task list.
  2. A relationship is a reference from one entity to another. To add a relationship, click Add.
  3. Select the entity with which you want to create the relationship.
  4. Select the fetch type. A lazy fetch type specifies that loading of the field is deferred until you access the field for the first time. An eager fetch type specifies that when you retrieve an entity, you are guaranteed that all of its fields are populated with data store data. For example, if you have a bidirectional one-to-many relationship between a Department entity and an Employee entity, since most of the time, when the Department entity is fetched, its employees are likely to be fetched, the fetch type of this one-to-many relationship is set to EAGER.
  5. Select the multiplicity of the relationship.
  6. Specify if you want the relationship to be bidirectional or unidirectional. A unidirectional relationship means that entity A references entity B, but entity B does not reference entity A. A bidirectional relationship means that the entities reference each other.
  7. Select foreign keys from the list to map to primary keys.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tjpaconfigrelationships.html