package de.htwsaar.webshop.repository;

import de.htwsaar.webshop.repository.entities.Order;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderRepository extends JpaRepository<Order, Long> {
    List<Order> getOrdersByCustomer_Id(Long customerId);

    List<Order> getOrdersByTimeBetween(Long timeAfter, Long timeBefore);
}
