Associations (IDEF1X)
*An association is a relationship existing between two classes.
Associations can be compared to links between index cards.
The following drawing provides a three-dimensional view of the situations a data diagram can store.
Peter and Mary are clients. Peter has made reservations numbers 312 and 329.
A data diagram should be able to store all situations in the context of the company, but these situations only.
*The diagram should not allow representing unrealistic or aberrant situations.
Examples of associations:
A client issues an order.
An order includes several products.
A person works for a company.
An alarm is triggered by a sensor.
A sensor covers a zone.
A window displays a string of characters.
non-specific relationship
*A non-specific relationship is an association between entities in which each instance of the first entity is associated with zero, one or many instances of the second entity and each instance of the second entity is associated with zero, one or many instance of the first entity. It is depicted as a line drawn between the two associated entities with a dot at each end of the line.
Non-specific relationships are used in high-level Entity-Relationship views to represent many-to-many associations between entities.
In the initial development of a model, it is often helpful to identify “non-specific relationships” between entities. These non-specific relationships are refined in later development phases of the model.
A non-specific relationship, also referred to as a “many-to-many relationship,” is an association between two entities in which each instance of the first entity is associated with zero, one, or many instances of the second entity and each instance of the second entity is associated with zero, one, or many instances of the first entity. For example, if an employee can be assigned to many projects and a project can have many employees assigned, then the connection between the entities "Employee" and "Project" can be expressed as a non-specific relationship. This non-specific relationship can be replaced with specific relationships later in the model development by introducing a third entity, such as "Project Assignment", which is a common child entity in specific connection relationships with the "Employee" and "Project" entities. The new relationships would specify that an employee has zero, one, or more project assignments. Each project assignment is for exactly one employee and exactly one project. Entities introduced to resolve non-specific relationships are sometimes called “intersection” or “associative” entities.
A non-specific relationship may be further defined by specifying the cardinality from both directions of the relationship.
To create a non-specific relationship:
1. In the diagram insert toolbar, click the non-specific relationship button .
2. Click the first entity, and holding the mouse button down, drag the mouse to the second entity before releasing the button.
The association appears in the diagram.
non-specific relationship
In the above example, an article can appear in zero, one or several catalogs and a catalog can contain zero, one or several articles.