A Non-Relational Representation
To solve the problems from the relational model, the vehicle manufacturer example can be represented by a non-relational model which supports the following three properties:
- Type declarations are as flexible as in programming languages.
- Referencing: Objects can be uniquely identified independently of their attribute values.
- Reuse of information is possible by
- Aggregation: New objects are built out of existing ones.
- Specialization: It allows inheritance of structure and behavior.
Below shows how the entities are redefined by using a non-relational representation.
Persons
This entity has a name, age and domicile, and possesses a private fleet.
|
⇒ |
Person: [
Name: String,
Age: Integer,
Domicile: Address,
Fleet: { Vehicle } ]
|
|
Employees
It is with specific qualifications, salary, and family members.
|
⇒
inheritance |
Employee is-a Person: [
Qualifications: { String },
Salary: Integer,
Familymember: { Person } ]
|
|
Each employee specializes a person.
By means of inheritance, the structure of persons is reused for employees.
Birds of a feather flock together.
|