Dear community, I am creating a form where anonymous users can select their culinary preferences through multiple questions. When an anonymous user visits the home page, I create a new object from the "Customer" entity. I also have an entity for the questions on my first page (see image). My question is: should I establish a 1-1 connection between the customer and the form questions, or a 1-* connection (meaning that the form questions on page 1 can have multiple customers)? I initially set up 1-1 connections between the customer and other form question entities (meaning that I always have to create a new form question entity for each customer), but I am wondering if this is the right approach.
asked
Sissi Bazan
1 answers
0
With the 1-1 association this means that 1 customer can be associated with 1 and only 1 FromQuestionPage1 object. This is probably not what you want. You want 1 customer to be associated with multiple FromQuestionPage1 objects so the association should allow for this and the association should be 1 - * (customer - FormQuestionsPage1)