public List<CustomerWishlistPojo> getWishlist( final Customer customer, final MarketArea marketArea) { final CustomerMarketArea customerMarketArea = customer.getCurrentCustomerMarketArea(marketArea.getId()); Set<CustomerWishlist> wishlistProducts = customerMarketArea.getWishlistProducts(); List<CustomerWishlistPojo> wishlists = PojoUtil.mapAll(dozerBeanMapper, wishlistProducts, CustomerWishlistPojo.class); return wishlists; }
public List<CustomerPojo> getAllCustomers() { List<Customer> customers = customerService.findCustomers(); logger.debug("Found {} customers", customers.size()); return PojoUtil.mapAll(dozerBeanMapper, customers, CustomerPojo.class); }