on 11-30-2015 4:18 PM
Hello,
I'm wondering how you can model an m:n relationship in SEGW (OData v2).
For example we have an entity-type "project" and a second entity-type "employee". The relationship between these two entities is m:n, since a project typically has some members (employees) and an employee can work in multiple projects.
Could you please give me a hint how to model this?
If one employee could only work (at a time) in one project it woul be clear to me how to model this: The employee-entity would have a property for the project-id and in the referential constraints of the association the id of the principal entity "project" would be mapped to the project-id of the dependent entity "employee".
But for the m:n relationship it is unclear how to do this. If you would like to model an m:n relationship on the database level you usually need a separate table for this. Is there something similar in SEGW?
Thanks in advance and best regards,
Sven.
I googled to find this thread - Many-To-Many Relationships | SCN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
before I posted the question I already read the post you found. Unfortunately my question isn't answered in that post.The focus in that thread is more on how to realise this with BOPF. My question is more on how to do this in general. In addition the post you found is also not answered completely.
Thanks,
Sven.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.