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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...