07-10-2019 03:58 AM
Hi,
I currently have an Entity Relationship Diagram which I want to realize in my Model Manager.
I created the Model and added my tables but I don't know how to implement my connections between the tables (Foreign-keys). I tried associations already but I'm not sure about how or if I can connect my tables the right way.
Can anyone explain to me how to implement Foreign-keys via xml?
Alfresco Community Edition is version 5.2 for Linux.
Thanks for your help.
07-11-2019 10:28 AM
In my experience, the document content model in Alfresco does not adapt well to the relational database paradigms. Although you may adapt most of the relational DB concepts, Alfresco is not really designed with that purpose in mind. After completing your content model using ERD and RDB concepts, you will probably realize that performing some relational queries can be difficult or impossible, and the performance of some queries can be very poor.
I don't have a methodology of my own, but I have found that you may benefit from abandoning, at least temporarily, your relational DB experience, and trying to understand and embrace Alfresco's model.
You may feel uncomfortable abandoning the RDB paradigms, but the Alfresco content model has interesting features that a RDB doesn't have. The content model is conceptually closer to Object Oriented Programming, Aspect Oriented Programming, and hierarchical databases.
07-10-2019 04:14 AM
You have mentioned Model Manager, so you must be talking about the content model.
Content Model in Alfresco is to bind the set of metadata to content(document or folder).
However, you can build an association between different contents within Alfresco.
But it is difficult to understand what exactly you want to do by creating tables.
Which kind of tables?
Can you please explain a bit more about this?
Regards,
Kintu
07-10-2019 05:04 AM
Luckily I found a solution for my problem, thanks for your help.
Regards,
Katharina
07-11-2019 10:28 AM
In my experience, the document content model in Alfresco does not adapt well to the relational database paradigms. Although you may adapt most of the relational DB concepts, Alfresco is not really designed with that purpose in mind. After completing your content model using ERD and RDB concepts, you will probably realize that performing some relational queries can be difficult or impossible, and the performance of some queries can be very poor.
I don't have a methodology of my own, but I have found that you may benefit from abandoning, at least temporarily, your relational DB experience, and trying to understand and embrace Alfresco's model.
You may feel uncomfortable abandoning the RDB paradigms, but the Alfresco content model has interesting features that a RDB doesn't have. The content model is conceptually closer to Object Oriented Programming, Aspect Oriented Programming, and hierarchical databases.
07-10-2019 10:53 AM
Are you trying to map a table and its columns with content model ?
Explore our Alfresco products with the links below. Use labels to filter content by product module.