public interface EventRepository extends Repository<EventEntity, Integer> {
EventEntity save(EventEntity entity);
@Query(value
= " Select e"
+ "   from EventEntity e"
<BUG>+ "  where e.heldOn > current_date()"
+ "  order by e.heldOn asc "</BUG>
)
@Transactional(readOnly = true)
List<EventEntity> findUpcomingEvents();

public interface EventRepository extends Repository<EventEntity, Integer> {
EventEntity save(EventEntity entity);
@Query(value
= " Select e"
+ "   from EventEntity e"
+ "  where e.heldOn > current_date()"
+ "    and e.status = 'open'"
+ "  order by e.heldOn asc "
)
@Transactional(readOnly = true)
List<EventEntity> findUpcomingEvents();
