}
public Long addAppointmentReminderTyps( Long user_id, String name, String comment) {
try {
AppointmentReminderTyps ac = new AppointmentReminderTyps();
ac.setName(name);
ac.setStarttime(new Date());
ac.setDeleted("false");
ac.setUser(UsersDaoImpl.getInstance().getUser(user_id));
ac.setComment(comment);
Object idf = PersistenceSessionUtil.createSession();
EntityManager session = PersistenceSessionUtil.getSession();
EntityTransaction tx = session.getTransaction();
tx.begin();
ac = session.merge(ac);
Long category_id = ac.getTypId();
tx.commit();
PersistenceSessionUtil.closeSession(idf);
return category_id;