I am creating new website using JSF 2.0 and MySQL. Below is what I have.
Note Here in each table I am only considering 1-2 fields just for explanation purpose. In real I will have many fields depending on requirement.
I have n number of Applicants.
ApplicantDataTable
+++++++++++++++++++
appId PK
appName
+++++++++++++++++++
Each applicant will have many projects.
ProjectDataTable
+++++++++++++++++++
proId PK
proName
appId FK
+++++++++++++++++++
Each project will have many stages and for each stage I will need to enter data.
stage1datatable
+++++++++++++++++++
stg001id PK
proId FK
stg001name
+++++++++++++++++++
stage2datatable
+++++++++++++++++++
stg002id PK
proId FK
stg002name
+++++++++++++++++++
In applicant screen I will have list of applicants. Once I click on this, I will get list of projects of that applicant. Once I click on that, I will have stage 1 screen and in stage 1 screen, at the bottom i will have link for stage 2, 3, 4, etc.
I see that I will have to take ProjectId & appId through all stages, so I am not sure whether I shall keep bean that will have projectId and appId in session scope? Could some one suggest me how should I structure beans in Java?
Any suggestions would be great.