From: Roland Häder Date: Fri, 13 May 2016 13:02:32 +0000 (+0200) Subject: renamed named queries for better naming convention ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=72bc627a0be41f735fade4f863c35c87fe93686d;p=pizzaservice-ejb.git renamed named queries for better naming convention ... --- diff --git a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java index 0124c40..7c8fd68 100644 --- a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java @@ -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