]> git.mxchange.org Git - addressbook-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 20:15:51 +0000 (22:15 +0200)
src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java

index a713d211855c7717686f998c4d29e76e16f28dfd..499d1a31d009e52ab119410b338570ea44ca1423 100644 (file)
@@ -183,7 +183,7 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl
                }
 
                // 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
@@ -225,7 +225,7 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl
                }
 
                // 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
@@ -311,7 +311,7 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl
                }
 
                // 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
@@ -358,7 +358,7 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl
                }
 
                // 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
@@ -405,7 +405,7 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl
                }
 
                // 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
@@ -443,7 +443,7 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl
                }
 
                // 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
@@ -484,7 +484,7 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl
                }
 
                // 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