How to set up HIbernate-Mapping between user table and other tables

Viewed 83

I'm working on an application (JEE,Hibernate 3, Struts2) in which I have two profiles (Admin, Process) and I need to authenticate my users and redirect them into different jsp pages with different menus.

What I can do best for the mapping: an admin table + a process table that inherits from user and use the discriminator tag into the mapping of user? Or should I do a one to one mapping between the user table and the other tables?

Ps: I'm using an XML file for mapping.

1 Answers
Related