public void addContacts(Relation contacts) { Map<String, Object> data = DataUtil.parseObjectToMap(contacts, Relation.class); relationDao.addContacts(data); }
public boolean addInventory(Inventory inventory) { Map<String, Object> data = DataUtil.parseObjectToMap(inventory, Inventory.class); return inventoryDao.addInventory(data); }