}
public Long deleteAppointmentReminderTyp(Long typId) {
try {
AppointmentReminderTyps ac = this
.getAppointmentReminderTypById(typId);
log.debug("ac: " + ac);
if (ac == null) {
log.debug("Already deleted / Could not find: " + typId);
return typId;
}
ac.setUpdatetime(new Date());
ac.setDeleted("true");
if (ac.getTypId() == null) {
em.persist(ac);
} else {
if (!em.contains(ac)) {
em.merge(ac);
}