@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 public void work() { Shop shop = new Shop(); shopDao.saveOrUpdate(shop); Worker worker = workerFactory.create(); worker.work(30); // throw new UnsupportedOperationException("Check whether the worker is committed or // rollback~~~"); }
@Override @Transactional(propagation = Propagation.REQUIRES_NEW, isolation = Isolation.DEFAULT) public void saveOrUpdateExamine(ExamineDTO examineDTO) { Examine examine = examineDTO.toExamine(); shopDao.saveOrUpdate(examine); }
@Override public void saveOrUpdateAttachment(CommentAttachment attachment) { shopDao.saveOrUpdate(attachment); }