Rev 4500 | Rev 5185 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/****/package in.shop2020.warehouse.handler;import in.shop2020.warehouse.domain.InventoryItem;import in.shop2020.warehouse.persistence.InventoryItemMapper;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Service;/*** @author mandeep**/@Servicepublic class InventoryItemHandler {@Autowiredprivate InventoryItemMapper inventoryItemMapper;/*** @param inventoryItem*/public in.shop2020.warehouse.InventoryItem insertInventoryItem(InventoryItem inventoryItem) {inventoryItemMapper.insertInventoryItem(inventoryItem);return inventoryItem.convert();}/*** @param inventoryItemId* @return*/public InventoryItem getInventoryItem(long inventoryItemId) {return inventoryItemMapper.getInventoryItem(inventoryItemId);}/*** @param serialNumber* @return*/public InventoryItem getInventoryItem(String serialNumber) {return inventoryItemMapper.getInventoryItemFromSerialNumber(serialNumber);}}