@SuppressWarnings ("unchecked")
public List<Country> allCountries () {
// Init query
- Query query = this.getEntityManager().createNamedQuery("AllCountries");
+ Query query = this.getEntityManager().createNamedQuery("AllCountries", List.class); //NOI18N
// Return it
return query.getResultList();