コード例 #1
0
 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;
 }
コード例 #2
0
 public List<CustomerPojo> getAllCustomers() {
   List<Customer> customers = customerService.findCustomers();
   logger.debug("Found {} customers", customers.size());
   return PojoUtil.mapAll(dozerBeanMapper, customers, CustomerPojo.class);
 }