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();
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();
@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();
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
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();
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;
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
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();
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
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
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();