}
public Long addAppointmentReminderTyps(Long user_id, String name, long fieldvalues_id) {
try {
AppointmentReminderTyps ac = new AppointmentReminderTyps();
ac.setName(name);
ac.setStarttime(new Date());
ac.setDeleted(false);
ac.setUser(usersDao.get(user_id));
ac.setFieldvalues_id(fieldvalues_id);
ac = em.merge(ac);
Long category_id = ac.getTypId();
return category_id;
} catch (Exception ex2) {
log.error("[addAppointmentReminderTyps]: ", ex2);
}