-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Data Model] Relationship between Company and Branch should be OneToMany #86
Comments
Hello Grichka, your point is correct, there must be an 1:n relationship between company and branch. From the Excel I use, Cardinality for Branch in company is n, so I´d see it as 1:n. Can you explain why you think it´s currently 1:1? It´s good to get feedback from you here ;-) |
Hi @LHDrBillion , thanks for your reply :) I am referring to the logical datamodel published in the version of November. Ontology line 497:
Max cardinality of Branch is "1" |
Hi all, @grichka Renaming to companyBranch makes sense, will bring the point in the data model taskforce. @emtscho Cheers |
Hi, Following are the changes that the data model taskforce agreed on:
|
Currently, field BookingOption:shipper (and :consignee, :notifyParty and :freightForwarder and possibly some others) refers to a Company. So all links to Company needs to be checked and probably also changed to CompanyBranch. Others, e.g. maybe bookingOption:carrier, might remain with linking to a Company - but even with Airlines having multiple offices they have this one and only official main address - where to put that? |
This issue shall be rediscussed with the data model taskforce for next release |
Hey Martin, just to keep this discussion up-to-date: We were discussing a "headquater"-flag for one of the branches, which would solve the "bookingOption"-Problem, but still enable a 1:n relation with the company and companyBranch. "This is the way" ;-) |
I am sure there are multiple ways, e.g. one could also add an address in This is a non-trivial problem especially with a strong relationship to manage login/credentials/tokens for data access/visibility which from my point of view need to be grantable on Company level for sure and might be additionally grantable on Branch level. |
Hello, I noticed that according to the Ontology and logical data model, a Company can have only one Branch.
Of course, what is needed at the end is a specific Branch of a company that is involved in the freight transportation. However the data model should define that a Company has several Branches. A Company should have a set of Branch.
So I think that anywhere we have
Company
used in the model, this company should be changed to acompanyBranch
.Or if we want to stick with this version of the model, we have to create (and duplicate) one company for each branch.
Thanks for your feedback.
The text was updated successfully, but these errors were encountered: