public void deleteAttachment(long taskId, long attachmentId) { Task task = em.find(Task.class, taskId); task.getTaskData().removeAttachment(attachmentId); //TODO: should I remove the content? }
public void deleteAttachment(long taskId, long attachmentId) { Task task = em.find(Task.class, taskId); task.getTaskData().removeAttachment(attachmentId); //TODO: should I remove the content? }