@Override @Transactional(propagation = Propagation.REQUIRES_NEW, isolation = Isolation.SERIALIZABLE) public String updateShop(ShopFormDTO shopFormDTO) { Shop shop = shopFormDTO.toShop(); shopDao.saveOrUpdate(shop); return shop.getGuid(); }
@Override @Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT) public String saveOrUpdateShop(ShopFormDTO shopFormDTO) { if (shopFormDTO.isNew()) { return saveShop(shopFormDTO); } else { return updateShop(shopFormDTO); } }