"or (e.period.startDateTime >= :startDateTime and e.period.startDateTime <= :endDateTime)" +
" or (e.period.endDateTime < :startDateTime and e.recurrence is not null and " +
"(e.recurrence.endDateTime >= :startDateTime or e.recurrence.endDateTime is null))" +
") order by e.period.startDateTime"),
@NamedQuery(name = "calendarEventsDeleteAll", query =
<BUG>"delete from CalendarEvent where calendar = " + ":calendar")})
</BUG>
public class CalendarEvent extends AbstractJpaEntity<CalendarEvent, UuidIdentifier>
implements Plannable, Recurrent, Categorized, Prioritized {
private static final long serialVersionUID = 1L;

"or (e.period.startDateTime >= :startDateTime and e.period.startDateTime <= :endDateTime)" +
" or (e.period.endDateTime < :startDateTime and e.recurrence is not null and " +
"(e.recurrence.endDateTime >= :startDateTime or e.recurrence.endDateTime is null))" +
") order by e.period.startDateTime"),
@NamedQuery(name = "calendarEventsDeleteAll", query =
"delete from CalendarEvent e where e.calendar = " + ":calendar")})
public class CalendarEvent extends AbstractJpaEntity<CalendarEvent, UuidIdentifier>
implements Plannable, Recurrent, Categorized, Prioritized {
private static final long serialVersionUID = 1L;
