]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
added class definition
authorRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 16:02:54 +0000 (18:02 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 16:02:54 +0000 (18:02 +0200)
PizzaService-ejb/src/java/org/mxchange/jcountry/data/PizzaServiceCountrySingletonBean.java

index cabd1f4c889da322c97aaff6be08062cb617e050..f03a4497644092fa56fce652c1baf874af8843b5 100644 (file)
@@ -40,7 +40,7 @@ public class PizzaServiceCountrySingletonBean extends BaseDatabaseBean implement
        @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();