[jboss-user] [EJB 3.0] - Re: Illegalargumentexception on calling namedquery

itsme do-not-reply at jboss.com
Mon Jun 9 11:43:04 EDT 2008

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#4156742

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156742

More information about the jboss-user mailing list