use of com.artezio.arttime.admin_tool.log.Log in project ART-TIME by Artezio.
the class HourTypeRepository method remove.
@FacesMessage(onCompleteMessageKey = "message.hourTypeIsDeleted")
@WebCached(resetCache = true)
@Log(logParams = true)
public void remove(@DetailedLogged HourType hourType) throws ActualTimeRemovalException {
if (hourType.isActualTime()) {
throw new ActualTimeRemovalException("Attempt to delete an actual time.");
}
HourType type = entityManager.find(HourType.class, hourType.getId());
entityManager.remove(type);
entityManager.flush();
}
use of com.artezio.arttime.admin_tool.log.Log in project ART-TIME by Artezio.
the class ProjectRepository method remove.
@Log(logParams = true)
@FacesMessage(onCompleteMessageKey = "message.projectIsDeleted")
@WebCached(resetCache = true)
public void remove(@DetailedLogged Project project) {
Project managedProject = entityManager.find(Project.class, project.getId());
entityManager.remove(managedProject);
entityManager.flush();
}
Aggregations