Home > Back-end >  The relationship between the object design, which one to use
The relationship between the object design, which one to use

Time:10-19

The relationship between the object design
Sector entities, corporate entities, they have a relationship between,
DeptDoc
private int id;
Private String department;
EntDoc
Private int entid;
Private String entname;
There are three types of associated design:
A, ID associated company entity class,
Dept
private int id;
Private String department;
Private String entid;
Second, the company objects to associations,
Dept
private int id;
Private String department;
Private entDoc ent;

CodePudding user response:

Not what not good, complexity is the same, mainly depends on how you code architecture design, with the responsibility of each layer is the best
  • Related