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