コード例 #1
0
 @Override
 public void delete(Long id) {
   try {
     Accompaniment findById = accompanimentDAO.findById(id, null);
     deleteAssociations(findById);
     Accompaniment expurge = new Accompaniment();
     expurge.setId(id);
     accompanimentDAO.update(expurge);
     accompanimentDAO.delete(expurge);
   } catch (Exception e) {
     LOGGER.error("DELETE ASSOCIATIONS ERROR ->> " + e);
   }
 }