]> git.mxchange.org Git - jjobs-ejb.git/blobdiff - src/java/org/mxchange/jusercore/model/user/password_history/JobsUserPasswordHistorySessionBean.java
Please cherry-pick/rename:
[jjobs-ejb.git] / src / java / org / mxchange / jusercore / model / user / password_history / JobsUserPasswordHistorySessionBean.java
index 03c08ab4301b0a5370068728ec62d8ab4cdbbd09..24081d7588308746d3cabf97a46c29f494e698c5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 Cho-Time GmbH
+ * Copyright (C) 2016 - 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as
@@ -26,7 +26,7 @@ import org.mxchange.jusercore.model.user.User;
 /**
  * A user password history EJB
  * <p>
- * @author Roland Haeder<rhaeder@cho-time.de>
+ * @author Roland Häder<roland@mxchange.org>
  */
 @Stateless (name = "userPasswordHistory", description = "A stateless EJB for user's password history. This bean does return the full user's password history and not limited. The application then needs to limit it to it's purpose.")
 public class JobsUserPasswordHistorySessionBean extends BaseJobsDatabaseBean implements UserPasswordHistorySessionBeanRemote {
@@ -40,6 +40,8 @@ public class JobsUserPasswordHistorySessionBean extends BaseJobsDatabaseBean imp
         * Default constructor
         */
        public JobsUserPasswordHistorySessionBean () {
+               // Call super constructor
+               super();
        }
 
        @Override
@@ -61,13 +63,13 @@ public class JobsUserPasswordHistorySessionBean extends BaseJobsDatabaseBean imp
                }
 
                // Get named query
-               Query query = this.getEntityManager().createNamedQuery("AllUsersHistoryEntries", UserPasswordHistory.class); //NOI18N
+               final Query query = this.getEntityManager().createNamedQuery("AllUsersHistoryEntries", UserPasswordHistory.class); //NOI18N
 
                // Set parameter
                query.setParameter("user", user); //NOI18N
 
                // Get full history
-               List<PasswordHistory> history = query.getResultList();
+               final List<PasswordHistory> history = query.getResultList();
 
                // Trace message
                this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.getUserPasswordHistory(): history.size()={1} - EXIT !", this.getClass().getSimpleName(), history.size())); //NOI18N