]> git.mxchange.org Git - jjobs-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>
Sat, 14 May 2016 12:47:18 +0000 (14:47 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java

index f89ad9ca23b7a14d592d07896e9249bded73a81b..81d82cd7381d94451735ced3ac98c341501e69c4 100644 (file)
@@ -183,7 +183,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                }
 
                // Try to locate it
-               Query query = this.getEntityManager().createNamedQuery("SearchUserName", LoginUser.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserByName", LoginUser.class); //NOI18N
 
                // Set parameter
                query.setParameter("param", user.getUserName()); //NOI18N
@@ -225,7 +225,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                }
 
                // Create query instance
-               Query query = this.getEntityManager().createNamedQuery("SearchUserId", LoginUser.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserById", LoginUser.class); //NOI18N
 
                // Set user id
                query.setParameter("id", userId); //NOI18N
@@ -311,7 +311,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                }
 
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("SearchUserId", LoginUser.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserById", LoginUser.class); //NOI18N
 
                // Set parameter
                query.setParameter("id", user.getUserId()); //NOI18N
@@ -358,7 +358,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                }
 
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("SearchUserId", LoginUser.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserById", LoginUser.class); //NOI18N
 
                // Set parameter
                query.setParameter("id", userId); //NOI18N
@@ -405,7 +405,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                }
 
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("SearchUserName", LoginUser.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserByName", LoginUser.class); //NOI18N
 
                // Set parameter
                query.setParameter("param", userName); //NOI18N
@@ -443,7 +443,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                }
 
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("SearchEmailAddress", LoginUser.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserByEmailAddress", LoginUser.class); //NOI18N
 
                // Set parameter
                query.setParameter("param", user.getUserContact().getContactEmailAddress()); //NOI18N
@@ -484,7 +484,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                }
 
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("SearchUserName", LoginUser.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserByName", LoginUser.class); //NOI18N
 
                // Set parameter
                query.setParameter("param", user.getUserName()); //NOI18N