• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use an Admin and User class in a Web Application

 
Talabér Ferenc
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have an User class and an Admin class inherited from it. In the Admin class are the methods what only Administrators can use.

How can I use these classes in the practice?
The users and admins are stored in the same database table, the application uses JPA. At runtime the user who has logged in is stored in a session bean.
I have made a method which returns an user or admin object by the user's name. How should I continue?
 
Campbell Ritchie
Sheriff
Posts: 48378
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult a question for "beginning". Moving.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic