22232425262728
*/ public class CountryController extends AbstractDataPageController<Country> { @Override protected AbstractService<Country> createService() { return new CountryService(); }
49505152535455
* Gets countries count from database. * * @return countries count */ public int getCountriesCount() { return new CountryService().getListWithNamedQuery(Country.FIND_ALL).size(); }
757677787980818283
return I18n.CUSTOMERS.getString("Customer.Form.SelectCountry"); } }); } list.addAll(new CountryService().getListWithNamedQuery(Country.FIND_ALL)); return list; }