]> git.mxchange.org Git - jjobs-ejb.git/commitdiff
Continued a bit: (please cherry-pick)
authorRoland Häder <roland@mxchange.org>
Fri, 29 Jul 2016 14:13:54 +0000 (16:13 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 6 Aug 2016 21:51:28 +0000 (23:51 +0200)
- the class type is a hint for what kind of classes are in the List
- so no List is in List ... ;-)

Signed-off-by: Roland Häder <roland@haeder.net>
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java
src/java/org/mxchange/jcountry/data/JobsCountrySingletonBean.java
src/java/org/mxchange/jphone/phonenumbers/mobileprovider/JobsMobileProviderSingletonBean.java
src/java/org/mxchange/jphone/phonenumbers/phone/JobsAdminContactPhoneSessionBean.java
src/java/org/mxchange/jusercore/model/email_address/JobsEmailChangeSessionBean.java
src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java

index e104fea827a2ee6ebd6065bc233b4943022c737d..db7dce1fb6d27a5e500722595e8e32b9fcd2738f 100644 (file)
@@ -143,7 +143,7 @@ public class JobsContactSessionBean extends BaseJobsDatabaseBean implements Cont
                this.getLoggerBeanLocal().logTrace("getAllContacts - CALLED!"); //NOI18N
 
                // Create query instance
-               Query query = this.getEntityManager().createNamedQuery("AllContacts", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllContacts", UserContact.class); //NOI18N
 
                // Get list
                List<Contact> contacts = query.getResultList();
@@ -162,7 +162,7 @@ public class JobsContactSessionBean extends BaseJobsDatabaseBean implements Cont
                this.getLoggerBeanLocal().logTrace("getEmailAddressList - CALLED!"); //NOI18N
 
                // Create query instance
-               Query query = this.getEntityManager().createNamedQuery("AllContactEmailAddresses", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllContactEmailAddresses", String.class); //NOI18N
 
                // Get list
                List<String> emailAddresses = query.getResultList();
index 3b31995a05d3f590055a66efecbee0b16122fec3..f6d467890754411e2cd1155408a499ad8a9fc409 100644 (file)
@@ -77,7 +77,7 @@ public class JobsCountrySingletonBean extends BaseJobsDatabaseBean implements Co
        @SuppressWarnings ("unchecked")
        public List<Country> allCountries () {
                // Init query
-               Query query = this.getEntityManager().createNamedQuery("AllCountries", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllCountries", CountryData.class); //NOI18N
 
                // Return it
                return query.getResultList();
index 2e28ab52ae21dd30df86c3ba122727d7c5563aba..80fe7f1780d6052c9a3a971b1bd9161e20b9c00a 100644 (file)
@@ -40,7 +40,7 @@ public class JobsMobileProviderSingletonBean extends BaseJobsDatabaseBean implem
        @SuppressWarnings ("unchecked")
        public List<MobileProvider> allMobileProvider () {
                // Init query
-               Query query = this.getEntityManager().createNamedQuery("AllMobileProvider", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllMobileProvider", CellphoneProvider.class); //NOI18N
 
                // Return it
                return query.getResultList();
index 69f38b0601c0695967ccfd0c2cfaca9b7c26b1b3..16ac9a658286be72e4dab71c8c8a0cbbab2172eb 100644 (file)
@@ -22,6 +22,7 @@ import javax.ejb.Stateless;
 import javax.persistence.NoResultException;
 import javax.persistence.Query;
 import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jcontacts.contact.UserContact;
 import org.mxchange.jcontacts.phone.AdminContactsPhoneSessionBeanRemote;
 import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
 import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
@@ -58,7 +59,7 @@ public class JobsAdminContactPhoneSessionBean extends BaseJobsDatabaseBean imple
                List<Contact> contacts = null;
 
                // Get query object from all found contact-cellphone links
-               Query query = this.getEntityManager().createNamedQuery("AllContactsByCellphone", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllContactsByCellphone", UserContact.class); //NOI18N
 
                // Set parameter
                query.setParameter("cellPhone", cellPhone); //NOI18N
index 880d952e131f164a0e4b8c75478c186f55f60664..faff72db974ce34edabde2df010a7197017a192d 100644 (file)
@@ -63,7 +63,7 @@ public class JobsEmailChangeSessionBean extends BaseJobsDatabaseBean implements
                this.getLoggerBeanLocal().logTrace("allQueuedAddressesAsList: CALLED!"); //NOI18N
 
                // Get named query
-               Query query = this.getEntityManager().createNamedQuery("AllEmailAddressChanges", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllEmailAddressChanges", String.class); //NOI18N
 
                // Get all entries
                List<String> emailAddresses = query.getResultList();
index 7c4badb662b179cfe774faf3e745fcacf8289207..e358d9524adf127984709df4f39ecdb6cdfe123a 100644 (file)
@@ -117,7 +117,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                this.getLoggerBeanLocal().logTrace("allMemberPublicVisibleUsers: CALLED!"); //NOI18N
 
                // Get named query
-               Query query = this.getEntityManager().createNamedQuery("AllMemberPublicUsers", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllMemberPublicUsers", LoginUser.class); //NOI18N
 
                // Set parameters
                query.setParameter("status", UserAccountStatus.CONFIRMED); //NOI18N
@@ -141,7 +141,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                this.getLoggerBeanLocal().logTrace("allPublicUsers: CALLED!"); //NOI18N
 
                // Get named query
-               Query query = this.getEntityManager().createNamedQuery("AllPublicUsers", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllPublicUsers", LoginUser.class); //NOI18N
 
                // Set parameters
                query.setParameter("status", UserAccountStatus.CONFIRMED); //NOI18N
@@ -164,7 +164,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                this.getLoggerBeanLocal().logTrace("allUsers: CALLED!"); //NOI18N
 
                // Get named query
-               Query query = this.getEntityManager().createNamedQuery("AllUsers", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllUsers", LoginUser.class); //NOI18N
 
                // Get result
                List<User> users = query.getResultList();