This content has been marked as final.
Show 2 replies
-
1. Re: App architechture question
chris.simons Jun 19, 2009 6:06 PM (in response to oneworld95)That is certainly a good option to simply extend the Person class.
One thing to consider is that there are several ways of going about this with Seam when using JPA. You could, for example, embed the subclass information by using a discrimator. Or you could setup a parent to child relationship in the database. A number of options, really.
You could get fancy and create a facelet for entering the generic person data and then include this facelet on each page for Supervisor, Requestor, etc.
-
2. Re: App architechture question
binnyg Jun 19, 2009 7:45 PM (in response to oneworld95)It really depends on your application logic.
- Can one person be a NewEmployee, Supervisor, and Requestor? I would use a person super class with its own table.
- If they are unique and if you are just trying to extract the common fields then I would use embeddable.
- What should your database tables look like to fullfill your usecases? Read this
Good Luck