@ -8,6 +8,6 @@ import ru.ulstu.ping.model.Ping;
public interface PingRepository extends JpaRepository < Ping , Integer > {
@Query ( "SELECT count(*) FROM Ping p WHERE (DAY(p.date) = :day) AND (MONTH(p.date) = :month) AND ( p.conference = :conference)")
long countByConferenceAndDate ( @Param ( "conference" ) Conference conference , @Param ( "day" ) Integer day , @Param ( "month" ) Integer month );
@Query ( "SELECT count(*) FROM Ping p WHERE (DAY(p.date) = :day) AND (MONTH(p.date) = :month) AND ( YEAR(p.date) = :year) AND ( p.conference = :conference)")
long countByConferenceAndDate ( @Param ( "conference" ) Conference conference , @Param ( "day" ) Integer day , @Param ( "month" ) Integer month , @Param ( "year" ) Integer year );
}