@Override
public void deleteBatch(final List<PurchaseDTO> purchases) {
final List<Purchase> list = new ArrayList<Purchase>();
for (final PurchaseDTO purchaseDTO : purchases) {
final Purchase purchase = this.mapper.map(purchaseDTO,
Purchase.class);
list.add(purchase);
}
try {
this.purchaseDao.deleteBatch(list);