I have a many-to-many relationship for Form and Workflow model. A workflow may contain…
Jump to turn (6)
- 1I have a many-to-many relationship for Form and Workflow model. A workflow may c
- 2How should the sequence be handled? Should it be handle in the frontend or backe
- 3How would you handle the sequence in the backend? If we have this requirement, t
- 4What is the purpose of @JoinTable in workflow class?
- 5Since the form can be reused by many multiple workflow, having a sequence variab
- 6How will the form class look like now? Is there still a direct many-many relatio
- User
I have a many-to-many relationship for Form and Workflow model. A workflow may contain zero or many forms while a form can be part of one or many workflow. How will you establish this relationship in SpringBoot?
Assistant
I would create a join table to connect the two entities. The join table would have two foreign keys, one to the Form entity and one to the Workflow entity, and also a sequence column to track the order of the forms in the workflow.
- User
How should the sequence be handled? Should it be handle in the frontend or backend? Users should be able to rearrange the form sequence.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.