]> git.mxchange.org Git - addressbook-ejb.git/commitdiff
added class definition
authorRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 15:59:53 +0000 (17:59 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 16:02:41 +0000 (18:02 +0200)
src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java
src/java/org/mxchange/jcountry/data/AddressbookCountrySingletonBean.java
src/java/org/mxchange/jphone/phonenumbers/smsprovider/AddressbookSmsProviderSingletonBean.java

index bdbd3d279c9cfb0b0679d8b53969875c67c4998d..528f0dd82c591701fe4f1b6437751de01e966bcf 100644 (file)
@@ -45,7 +45,7 @@ public class AddressbookSessionBean extends BaseDatabaseBean implements Addressb
        @SuppressWarnings ("unchecked")
        public List<AddressbookEntry> allEntries (final Addressbook addressbook) {
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("AllAddressbookEntries"); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllAddressbookEntries", List.class); //NOI18N
 
                // Set parameters
                query.setParameter("addressbook", addressbook); //NOI18N
@@ -75,7 +75,7 @@ public class AddressbookSessionBean extends BaseDatabaseBean implements Addressb
                }
 
                // Get named query
-               Query query = this.getEntityManager().createNamedQuery("SearchUserSharedAddressbooks"); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUserSharedAddressbooks", List.class); //NOI18N
 
                // Set parameter
                query.setParameter("user", user); //NOI18N
@@ -150,7 +150,7 @@ public class AddressbookSessionBean extends BaseDatabaseBean implements Addressb
                }
 
                // Get named query instance
-               Query query = this.getEntityManager().createNamedQuery("SearchAddressbookById"); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchAddressbookById", UserAddressbook.class); //NOI18N
 
                // Set parameter
                query.setParameter("id", addressbookId); //NOI18N
@@ -199,7 +199,7 @@ public class AddressbookSessionBean extends BaseDatabaseBean implements Addressb
                }
 
                // Get query instance
-               Query query = this.getEntityManager().createNamedQuery("SearchAddressbookById"); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchAddressbookById", UserAddressbook.class); //NOI18N
 
                // Set parameter
                query.setParameter("id", addressbookId); //NOI18N
index 5868ed8a10e210e3998829920aa911f6a570e3e2..ec49c70cfd9d0a0ae97e27cd01852b0aa4eb5952 100644 (file)
@@ -40,7 +40,7 @@ public class AddressbookCountrySingletonBean extends BaseDatabaseBean implements
        @SuppressWarnings ("unchecked")
        public List<Country> allCountries () {
                // Init query
-               Query query = this.getEntityManager().createNamedQuery("AllCountries"); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllCountries", List.class); //NOI18N
 
                // Return it
                return query.getResultList();
index 66daee7d873927948e432bf9aa6d27ff40b1a4db..531514c39c7a8ca5405921e4b3684fa26c0f1258 100644 (file)
@@ -40,7 +40,7 @@ public class AddressbookSmsProviderSingletonBean extends BaseDatabaseBean implem
        @SuppressWarnings ("unchecked")
        public List<SmsProvider> allSmsProvider () {
                // Init query
-               Query query = this.getEntityManager().createNamedQuery("AllSmsProvider"); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllSmsProvider", List.class); //NOI18N
 
                // Return it
                return query.getResultList();