Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

How to model an m:n relationship in SEGW?

$
0
0

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.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>