From: Roland Haeder Date: Sat, 12 Mar 2016 18:43:22 +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=dd6dca3f54dd8e87b2118de65611dcf73e6b8cd4;p=jjobs-mailer-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 59fe23a..168f75b 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 {