]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
added business method allUsers() + updated jar(s)
authorRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 17:35:43 +0000 (19:35 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 17:49:36 +0000 (19:49 +0200)
lib/juser-core.jar
lib/juser-lib.jar
src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java

index 4599325e92b862d649145a8aa1aecd222a96ce84..988fcc9e393829606313edd4fb3e5da5bf749de6 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index b6cd93dc36b3380e4dd6bcb76217ac6459517ef2..77cab45e3082066efa5f263ffdf793bd6955770a 100644 (file)
Binary files a/lib/juser-lib.jar and b/lib/juser-lib.jar differ
index 772efa00f00d8371bbedeae94574bde8cb0953d4..cf536d24279a4a7e48f96091518bd1e1dbbabe1b 100644 (file)
@@ -98,6 +98,25 @@ public class PizzaUserSessionBean extends BaseDatabaseBean implements UserSessio
                return users;
        }
 
+       @Override
+       @SuppressWarnings ("unchecked")
+       public List<User> allUsers () {
+               // Trace message
+               this.getLoggerBeanLocal().logTrace("allUsers: CALLED!"); //NOI18N
+
+               // Get named query
+               Query query = this.getEntityManager().createNamedQuery("allUsers", List.class); //NOI18N
+
+               // Get result
+               List<User> users = query.getResultList();
+
+               // Trace message
+               this.getLoggerBeanLocal().logTrace(MessageFormat.format("allUsers: users.size()={0} - EXIT!", users.size())); //NOI18N
+
+               // Return full list
+               return users;
+       }
+
        @Override
        public User fillUserData (final User user) {
                // Trace message