]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
renamed to better name
authorRoland Häder <roland@mxchange.org>
Wed, 18 May 2016 09:43:12 +0000 (11:43 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 20 May 2016 21:19:35 +0000 (23:19 +0200)
src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java

index 2174f56dfb639ae10553488cf1c8760980f11286..d0a1a22e339aa215153493016682811ef1b8890e 100644 (file)
@@ -189,7 +189,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                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;
@@ -408,7 +408,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                Query query = this.getEntityManager().createNamedQuery("SearchUserByName", LoginUser.class); //NOI18N
 
                // Set parameter
-               query.setParameter("param", userName); //NOI18N
+               query.setParameter("userName", userName); //NOI18N
 
                // Try this
                try {
@@ -446,7 +446,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                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 {
@@ -487,7 +487,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                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 {