]> git.mxchange.org Git - pizzaservice-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>
Fri, 5 Aug 2016 18:54:59 +0000 (20:54 +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/PizzaContactSessionBean.java
src/java/org/mxchange/jcountry/data/PizzaCountrySingletonBean.java
src/java/org/mxchange/jphone/phonenumbers/mobileprovider/PizzaMobileProviderSingletonBean.java
src/java/org/mxchange/jphone/phonenumbers/phone/PizzaAdminContactPhoneSessionBean.java
src/java/org/mxchange/jusercore/model/email_address/PizzaEmailChangeSessionBean.java
src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java

index a7dc1b7e1734b81cf5263f2b0e36b0aa3192e84b..e8dbbd38031899d2efeae82eba1eb6dae30e3b95 100644 (file)
@@ -171,7 +171,7 @@ public class PizzaContactSessionBean extends BasePizzaDatabaseBean implements Co
                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();
@@ -190,7 +190,7 @@ public class PizzaContactSessionBean extends BasePizzaDatabaseBean implements Co
                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 f71df88f8664dd5e35dde75bfdfe9366bee71f16..de0e24a912ecf5cba7ab62a6890d0e98f4a0831f 100644 (file)
@@ -77,7 +77,7 @@ public class PizzaCountrySingletonBean extends BasePizzaDatabaseBean 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();
@@ -110,7 +110,7 @@ public class PizzaCountrySingletonBean extends BasePizzaDatabaseBean implements
                boolean isAdded = false;
 
                // Get query instance
-               Query query = this.getEntityManager().createNamedQuery("SearchCountryByCodeI18nKey", Country.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchCountryByCodeI18nKey", CountryData.class); //NOI18N
 
                // Assign all parameters
                query.setParameter("code", country.getCountryCode()); //NOI18N
index df30806368d7fa962b7f71a84093a87b2b8acdba..3c12ca34e879de554db25a96f03a5061a5339d5d 100644 (file)
@@ -44,7 +44,7 @@ public class PizzaMobileProviderSingletonBean extends BasePizzaDatabaseBean impl
                this.getLoggerBeanLocal().logTrace("allMobileProvider: CALLED!"); //NOI18N
 
                // Init query
-               Query query = this.getEntityManager().createNamedQuery("AllMobileProvider", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllMobileProvider", CellphoneProvider.class); //NOI18N
 
                // Get list
                List<MobileProvider> list = query.getResultList();
index 8a04591d1a7b214ed8414102dcb67c018eba9ab0..258d5f7f4f80bacbda5ec598746573b1acaf9054 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.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
 import org.mxchange.pizzaaplication.database.BasePizzaDatabaseBean;
@@ -61,7 +62,7 @@ public class PizzaAdminContactPhoneSessionBean extends BasePizzaDatabaseBean imp
                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 d09c5395f9c9cf6d2eeaacd0716213d3bc291ea1..6f6629fbc60fedf6a6aa618b859bbe056f89b491 100644 (file)
@@ -63,7 +63,7 @@ public class PizzaEmailChangeSessionBean extends BasePizzaDatabaseBean implement
                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 41ddd303c661a9808c14f55a1b727dc5e014e02b..2f8b79fb65b29879e6d880995b19faa3e2960d47 100644 (file)
@@ -120,7 +120,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                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
@@ -144,7 +144,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                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
@@ -167,7 +167,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                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();