[jboss-user] [EJB 3.0] - Re: EJB3 entity bean query always returns null
jaikiran
do-not-reply at jboss.com
Thu Mar 12 07:50:20 EDT 2009
anonymous wrote : Query q1 = manager.createQuery("SELECT c FROM Customer c WHERE c.userName = :username AND c.password = :password ");
| q1.setParameter("username", userName);
| q1.setParameter("password", password);
| System.out.println(q1.getSingleResult());
Are you sure the database has an record for this username and password? And are you sure its not case-sensitive?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217399#4217399
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217399
More information about the jboss-user
mailing list