]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
renamed named queries for better naming convention ...
authorRoland Häder <roland@mxchange.org>
Fri, 13 May 2016 13:02:32 +0000 (15:02 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 13 May 2016 19:59:15 +0000 (21:59 +0200)
src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java

index 0124c40d5c6efa193b09c61fb3bfa5ca66237ac4..7c8fd68a9ce32a4093b56f3fb79aa33278539d8e 100644 (file)
@@ -186,7 +186,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                }
 
                // Try to locate it
-               Query query = this.getEntityManager().createNamedQuery("SearchUserName", User.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserByName", User.class); //NOI18N
 
                // Set parameter
                query.setParameter("param", user.getUserName()); //NOI18N
@@ -228,7 +228,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                }
 
                // Create query instance
-               Query query = this.getEntityManager().createNamedQuery("SearchUserId", User.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserById", User.class); //NOI18N
 
                // Set user id
                query.setParameter("id", userId); //NOI18N
@@ -314,7 +314,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                }
 
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("SearchUserId", User.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserById", User.class); //NOI18N
 
                // Set parameter
                query.setParameter("id", user.getUserId()); //NOI18N
@@ -361,7 +361,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                }
 
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("SearchUserId", User.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserById", User.class); //NOI18N
 
                // Set parameter
                query.setParameter("id", userId); //NOI18N
@@ -408,7 +408,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                }
 
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("SearchUserName", User.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserByName", User.class); //NOI18N
 
                // Set parameter
                query.setParameter("param", userName); //NOI18N
@@ -446,7 +446,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                }
 
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("SearchEmailAddress", User.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserByEmailAddress", User.class); //NOI18N
 
                // Set parameter
                query.setParameter("param", user.getUserContact().getContactEmailAddress()); //NOI18N
@@ -487,7 +487,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                }
 
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("SearchUserName", User.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserByName", User.class); //NOI18N
 
                // Set parameter
                query.setParameter("param", user.getUserName()); //NOI18N