Tutorial: Building an Rogue Wave Server Application > Designing the Server Object Model > Defining Relations
 
Defining Relations
You may want to refer to section Relations for an overview of relations in Rogue Wave® Server.
This section demonstrates how to define relations between the classes that make up a server object model.
You will define the following relations:
*A network that owns one or more domains.
To define such a relation, you will use the server class template IlsOwnsList which lets you declare a one-to-many ownership relation.
*A domain that owns one or more nodes and also one or more lines.
To define such a relation, you will also use the server class template IlsOwnsList.
*A line that uses an input node and an output node.
To define such a relation, you will use the server class template IlsUses. which lets you declare a one-to-one use relation.
Note: The Rogue Wave Server library contains many other class templates for defining relations. For more information, see the Rogue Wave Server Reference Manual and User’s Manual.
These class templates take two arguments:
*the name of the class that will be the origin of the relation, and
*the class that will be the target of the relation.

Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.