package at.procon.dip.domain.time.repository;

import at.procon.dip.domain.time.entity.TimeEntrySearchProjection;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
import org.springframework.data.jpa.repository.JpaRepository;

public interface TimeEntrySearchProjectionRepository extends JpaRepository<TimeEntrySearchProjection, UUID> {

    Optional<TimeEntrySearchProjection> findByTimeEntry_Id(UUID timeEntryId);

    Optional<TimeEntrySearchProjection> findByDocument_Id(UUID documentId);

    List<TimeEntrySearchProjection> findByTimeEntry_IdIn(Collection<UUID> timeEntryIds);
}
