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);
}

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);

}

Remove unused methods.