From: Roland Haeder Date: Thu, 15 Oct 2015 15:59:53 +0000 (+0200) Subject: added class definition X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e739251ea02a992875394eb22de5d35223c57de;p=addressbook-ejb.git added class definition --- diff --git a/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java b/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java index bdbd3d2..528f0dd 100644 --- a/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java +++ b/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java @@ -45,7 +45,7 @@ public class AddressbookSessionBean extends BaseDatabaseBean implements Addressb @SuppressWarnings ("unchecked") public List 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 diff --git a/src/java/org/mxchange/jcountry/data/AddressbookCountrySingletonBean.java b/src/java/org/mxchange/jcountry/data/AddressbookCountrySingletonBean.java index 5868ed8..ec49c70 100644 --- a/src/java/org/mxchange/jcountry/data/AddressbookCountrySingletonBean.java +++ b/src/java/org/mxchange/jcountry/data/AddressbookCountrySingletonBean.java @@ -40,7 +40,7 @@ public class AddressbookCountrySingletonBean extends BaseDatabaseBean implements @SuppressWarnings ("unchecked") public List allCountries () { // Init query - Query query = this.getEntityManager().createNamedQuery("AllCountries"); //NOI18N + Query query = this.getEntityManager().createNamedQuery("AllCountries", List.class); //NOI18N // Return it return query.getResultList(); diff --git a/src/java/org/mxchange/jphone/phonenumbers/smsprovider/AddressbookSmsProviderSingletonBean.java b/src/java/org/mxchange/jphone/phonenumbers/smsprovider/AddressbookSmsProviderSingletonBean.java index 66daee7..531514c 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/smsprovider/AddressbookSmsProviderSingletonBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/smsprovider/AddressbookSmsProviderSingletonBean.java @@ -40,7 +40,7 @@ public class AddressbookSmsProviderSingletonBean extends BaseDatabaseBean implem @SuppressWarnings ("unchecked") public List allSmsProvider () { // Init query - Query query = this.getEntityManager().createNamedQuery("AllSmsProvider"); //NOI18N + Query query = this.getEntityManager().createNamedQuery("AllSmsProvider", List.class); //NOI18N // Return it return query.getResultList();