return isPersisted();
}
@Override
public void delete() {
if (isPersisted()) {
<BUG>calendar.getPlannedEvents().remove(this);
}</BUG>
}
@Override
public void update() {

return isPersisted();
}
@Override
public void delete() {
if (isPersisted()) {
Transaction.getTransaction().perform(() -> {
CalendarEventRepository repository = CalendarEventRepository.get();
repository.delete(CalendarEvent.this);
return null;
});
}
}
@Override
public void update() {
