From 72bc627a0be41f735fade4f863c35c87fe93686d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 13 May 2016 15:02:32 +0200 Subject: [PATCH] renamed named queries for better naming convention ... --- .../jusercore/model/user/PizzaUserSessionBean.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 -- 2.39.5