31323334353637
* Gets customers count from database. * * @return customers count */ public int getCustomersCount() { return new CustomerService().getListWithNamedQuery(Customer.FIND_ALL).size(); }
28293031323334
*/ public class CustomerController extends AbstractDataPageController<Customer> { @Override protected AbstractService<Customer> createService() { return new CustomerService(); }