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?