Skip to main content

Defining Relationships

generated description: newrelationshipdiagram.jpg
Our diagram indicates a two-way relationship: each TicketOrder refers to zero or more TicketItem objects and each TicketItem refers to one (and only one) TicketOrder.

More specifically, this is an example of a parent/child relationship, with TicketOrder the parent and TicketItem the child. In a parent/child relationship, the children are dependent upon the parent—a parent can exist alone, without children, but a child cannot exist without a parent.

Although we could define a parent/child relationship manually, we don't need to because Caché will do most of the work automatically.

FeedbackOpens in a new tab