Hi I have a question about some circular relationships that I am facing with my database design . I read a few more similar questions but couldn't solve my problem, so here is my class diagram :
and here is the logic:
the value should be saved according to the fieldType ( date , char , long , double... )
However, from a database architect perspective, this circular relation is incorrect since it can results in integrity problems:
Should you have any idea how to deal with this, please be welcomed to comment.
Thank you in advance for your help.
Here the situation is even simpler than in your other similar question. It is clear that bottom two classes describe the abstract document structure, while the top two classes describe concrete documents.
Abstract elements should never depend on concrete ones, so just make two vertical associations unidirectional and point them towards abstract classes. This will break the circular dependency neatly.
In addition, I would further refine your model:
UPDATE: