Hi, I have probably a newbie question.
I have table USER which contains info about login, pass and autorities. Then, depending on autorites detail information about user can be found in one of following: Teacher, Student, Parent. User logs in and the information stored in USER table can be easly taken from security context. But I want to display first name and last name all the time in the header after logging - these can be fetchec from the other tables. My question is: how to handle storing one of these objects in session all the time? Or is it okay just to store User (its stored by spring) and then fetch particula table every time I need detail information?
I use spring security 3, hibernate, jsp, sitemash.
Thanks


Reply With Quote