Knowing the difference between non-identifying and identifying relationship is useful when we need to decide which one we need. So, in a very simple explanation, is like this:
Non-identifying relationship:
A person may own a house (or multiple houses). But, after a while, the person may sell the house to another person (owner). So, the house may exist without a owner or can change multiple owners in time. This is a non-identifying relationship.
Identifying relationship:
The sure thing is that a house must be built by a constructor (of course, the constructor has probably built multiple houses) and without that constructor the house would not have existed. This is the identifying relationship.
Niciun comentariu:
Trimiteți un comentariu