How To Create Domain Model, along with taken care performance?
0
i have 3 tabs Project , List Of filling form and Template. when we click on template it will open page there are lots field along with some attachments and all in table format. But all fields are empty. We just show the ROWS and Columns along with cells are empty in a table format. When we create a Project there we have option to select this template along with others fields need to fill it and save it. After project was created we have other tab like list of filling Form once we click on it will open same template some fields are common with project its automatically fill most of the field are editable here any user can fill this. How to create a Domain Model for this? because 1 of the tab i want to show empty template other tab i want to select same template in dropdown same template use in multiple Project. And Other tab i Want to fill this template as well. Please give me Suggestion based on improved Performance , How i can handle this type of Scenario?
asked
Pranjali Kawale
1 answers
0
What you can do is create entities: Template (for the empty template), Project (links to selected template), and FillingForm (for editable forms). Use associations:
Template → TemplateField for reusable fields.
Project → ProjectField to link and pre-fill fields from the template.
FillingForm → FillingField for user-edited values.