From: Roland Haeder Date: Sat, 12 Mar 2016 18:43:13 +0000 (+0100) Subject: nope, searching for whole user instance didn't work. :-( + updated jar(s) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2579ecb9a75891c79a4cdf04611d95d9795aea49;p=jjobs-ejb.git nope, searching for whole user instance didn't work. :-( + updated jar(s) --- diff --git a/lib/juser-core.jar b/lib/juser-core.jar index a9550a8..9faf59e 100644 Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ diff --git a/src/java/org/mxchange/jusercore/model/user/UserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/UserSessionBean.java index f438600..edd88dd 100644 --- a/src/java/org/mxchange/jusercore/model/user/UserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/UserSessionBean.java @@ -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 {