"from CalendarEvent where id = :id and calendar = " + ":calendar"),
@NamedQuery(name = "calendarEventsByIds", query =
"from CalendarEvent where calendar = :calendar and id in " + ":ids"),</BUG>
@NamedQuery(name = "calendarEventCount", query =
<BUG>"select count(e) from CalendarEvent e " + "where calendar = :calendar"),
</BUG>
@NamedQuery(name = "calendarEventsByPeriod", query =
<BUG>"select e from CalendarEvent e LEFT OUTER JOIN FETCH " + "e.recurrence r " +
"where e.calendar = :calendar and (" +</BUG>
"(e.period.startDateTime <= :startDateTime and e.period.endDateTime >= :startDateTime) " +

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDate;
import java.time.OffsetDateTime;
@Entity
@Table(name = "sb_cal_event")
@NamedQueries({
@NamedQuery(name = "calendarEventCount", query =
"select count(e) from CalendarEvent e where e.calendar = :calendar"),
@NamedQuery(name = "calendarEventsByPeriod", query =
"select e from CalendarEvent e LEFT OUTER JOIN FETCH e.recurrence r " +
"where e.calendar = :calendar and (" +
"(e.period.startDateTime <= :startDateTime and e.period.endDateTime >= :startDateTime) " +
