}
public Long addAppointmentCategory(Long user_id, String name, String comment) {
try {
AppointmentCategory ac = new AppointmentCategory();
ac.setName(name);
ac.setStarttime(new Date());
ac.setDeleted(false);
ac.setUser(usersDao.get(user_id));
ac.setComment(comment);
ac = em.merge(ac);
Long category_id = ac.getCategoryId();
return category_id;
} catch (Exception ex2) {
log.error("[addAppointmentCategory]: ", ex2);
}