March 2018
Intermediate to advanced
380 pages
9h 23m
English
Now that we have defined our entities, let's add relationships between them:
relationship OneToOne { Customer{user} to User}
The first relationship declared is a unidirectional OneToOne between a Customer entity and the inbuilt User entity:
Customer (1) -----> (1) User
It means the Customer entity knows about the User and is the owner of the relationship but the User doesn't know about the Customer and hence we will not be able to obtain customers from a User. This lets us map customers to the User entity and use that for authorization purposes later ensuring one customer can be mapped only to one system user.