Query query = this.getEntityManager().createNamedQuery("SearchUserByName", LoginUser.class); //NOI18N
// Set parameter
- query.setParameter("param", user.getUserName()); //NOI18N
+ query.setParameter("userName", user.getUserName()); //NOI18N
// Initialize variable
User foundUser = null;
Query query = this.getEntityManager().createNamedQuery("SearchUserByName", LoginUser.class); //NOI18N
// Set parameter
- query.setParameter("param", userName); //NOI18N
+ query.setParameter("userName", userName); //NOI18N
// Try this
try {
Query query = this.getEntityManager().createNamedQuery("SearchUserByEmailAddress", LoginUser.class); //NOI18N
// Set parameter
- query.setParameter("param", user.getUserContact().getContactEmailAddress()); //NOI18N
+ query.setParameter("emailAddress", user.getUserContact().getContactEmailAddress()); //NOI18N
// Search for it
try {
Query query = this.getEntityManager().createNamedQuery("SearchUserByName", LoginUser.class); //NOI18N
// Set parameter
- query.setParameter("param", user.getUserName()); //NOI18N
+ query.setParameter("userName", user.getUserName()); //NOI18N
// Try this
try {