]> git.mxchange.org Git - addressbook-mailer-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 20:50:43 +0000 (22:50 +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/AddressbookContactSessionBean.java
src/java/org/mxchange/jcountry/data/AddressbookCountrySingletonBean.java
src/java/org/mxchange/jphone/phonenumbers/mobileprovider/AddressbookMobileProviderSingletonBean.java
src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookAdminContactPhoneSessionBean.java
src/java/org/mxchange/jusercore/model/email_address/AddressbookEmailChangeSessionBean.java
src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java

index 8b1aadda8e2e5aa293ca2feba7150b0b08a945f3..b60576ba8d3466f81db1e24527d360e2f5eb4e8d 100644 (file)
@@ -143,7 +143,7 @@ public class AddressbookContactSessionBean extends BaseAddressbookDatabaseBean i
                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 AddressbookContactSessionBean extends BaseAddressbookDatabaseBean i
                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 b7a7dab99a74085a94476c531fc08777baffda7b..9358bcf85555edf90920459f2478b0c24f32c599 100644 (file)
@@ -77,7 +77,7 @@ public class AddressbookCountrySingletonBean extends BaseDatabaseBean implements
        @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 6809c0ecea9d78980bc2cfdf29e31a581d402dbb..7fd7d89d83e7505b9bd158684f26901b5d26f3d9 100644 (file)
@@ -40,7 +40,7 @@ public class AddressbookMobileProviderSingletonBean extends BaseDatabaseBean imp
        @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 7d3edd754bf1275fd2f6d505f8ee958c3983cf5b..6f580b56a192546faac8694b284661187ddc1963 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.jcoreee.database.BaseDatabaseBean;
 import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
@@ -58,7 +59,7 @@ public class AddressbookAdminContactPhoneSessionBean extends BaseDatabaseBean im
                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 65e2801539c33349fbcb9ac65170c35dafb234a4..9bde86501ce249cffce88219d59ffa131a9a9dd3 100644 (file)
@@ -63,7 +63,7 @@ public class AddressbookEmailChangeSessionBean extends BaseAddressbookDatabaseBe
                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 44fd081c7c55150ac943e7d7647b9cb7c5dd21ee..059d530b2676f8db7d828542728318409ab58c3b 100644 (file)
@@ -117,7 +117,7 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl
                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 AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl
                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 AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl
                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();