I need an advice. I'm creating a web app and I should handle multiple type of user. An user is a Customer and another one is an Admin. How can I map this in JPA config? Should I use inheritance?
E.g.
Customer extends User [...]
EDIT
If I take Customer, this "is an" User, as well as, Admin "is an" User. So if I consider "is an" as relationship, Customer table has fields, like address, telephone, etc..., that Admin Table doesn't need. Consequentily, Customer has relationships with other table that they are different about Admin. How could I map this with JPA?
Thanks