package bj.pranie.dao;

import bj.pranie.entity.Reservation;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

import java.sql.Date;
import java.util.List;


/**
 * Created by Sebastian Sokolowski on 10.08.16.
 */
@Transactional
public interface ReservationDao extends CrudRepository<Reservation, Long> {

    boolean existsByWashTimeIdAndDateAndWm(long washTimeId, Date date, int wm);

    List<Reservation> findByWashTimeIdAndDate(long washTimeId, Date date);

    List<Reservation> findByDate(Date date);

    List<Reservation> findByDateAndWm(Date date, int wm);

    List<Reservation> findByUserId(long userId);

    Long deleteByUserId(long userId);
}

@@ -750,94 +750,6 @@
 );%0A%0A
-    List%3CReservation%3E findByUserId(long userId);%0A%0A    Long deleteByUserId(long userId);%0A
 %7D%0A

Remove unused methods.