18
Views
5
Comments
Solved
Many-to-many relationship
Application Type
Traditional Web
Service Studio Version
11.54.29 (Build 62891)
Platform Version
11.23.1 (Build 40847)

I'm new to OutSystems,

I would like to know if in all N:N relationships I need to have an id in the associative table or can I simply create a new table passing only the FK of my tables.

Solution

Hi Alberto

You can't create a Junction Entity without a Primary key because it wouldn't serve the purpose of a Many-to-Many relationship.

Thanks

Thanks for the reply Anshul, I've cleared up my doubts 

Solution

If you have Associative Table without PK it means you already build a one to one relationship. 


Hi Alberto Santos ,

This is the example of N:N relationship .

To learn more about many to many relationship you must read this blow document .

https://success.outsystems.com/documentation/11/developing_an_application/use_data/data_modeling/entity_relationships/create_a_many_to_many_relationship/


let me know if you have any other question 

Thanks

Arif 

Thanks for the reply Arif ,


My main doubt is if I can have an associative table without a PK.

Solution

If you have Associative Table without PK it means you already build a one to one relationship. 

Solution

Hi Alberto

You can't create a Junction Entity without a Primary key because it wouldn't serve the purpose of a Many-to-Many relationship.

Thanks

Thanks for the reply Anshul, I've cleared up my doubts 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.