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