Senior |
|
Joined: Fri Jun 18, 2004 10:17 am Posts: 140
|
this isn't really a hibernate question. a pojo with methods like isAdmin and isGuest should be called something like UserContext and reside in session scope. there is nothing wrong with these simple boolean methods, so long as their values are not computed by the pojo when the view is returned. you should get your model layer to perform the userCxt.setIsAdmin(bool). you've not really give much other information so it's not easy to answer but you should not reply because this is non-hibernate.
|
|