]> git.mxchange.org Git - addressbook-ejb.git/commitdiff
nope, searching for whole user instance didn't work. :-( + updated jar(s)
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 18:43:22 +0000 (19:43 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 18:43:22 +0000 (19:43 +0100)
lib/juser-core.jar
src/java/org/mxchange/jusercore/model/user/UserSessionBean.java

index a9550a8da868bb57ea5208676cefe48f4d942689..9faf59e1c40d9e39719052e62161c0227ead0761 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index 59fe23ae2abbf00f98748cd256c3d7c3a3db7a9f..168f75b788bc6ddf798072c677b953b60df6c4ba 100644 (file)
@@ -177,10 +177,10 @@ public class UserSessionBean extends BaseDatabaseBean implements UserSessionBean
                }
 
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("SearchUser", LoginUser.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserId", LoginUser.class); //NOI18N
 
                // Set parameter
-               query.setParameter("user", user); //NOI18N
+               query.setParameter("id", user.getUserId()); //NOI18N
 
                // Try this
                try {