Three things to your attention:
1. Rename the table from User to anything else (i.e TUser) while on different databases
this might be a reserved word (i.e. Oracle).
2. Remove the constructor or replace your constructor with a default constructor with no
args.
3. For maintaining the state of a logged in user use a business method like
public User doLogin(String user, String pass). With this code you can find the user to log
in by using your correct query.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156742#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...