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

import at.procon.dip.domain.time.entity.TimeEntry;
import at.procon.dip.domain.time.entity.TimeSourceSystem;
import java.util.Optional;
import java.util.UUID;
import org.springframework.data.jpa.repository.JpaRepository;

public interface TimeEntryRepository extends JpaRepository<TimeEntry, UUID> {

    Optional<TimeEntry> findByDocument_Id(UUID documentId);

    Optional<TimeEntry> findBySourceSystemAndExternalId(TimeSourceSystem sourceSystem, String externalId);
}
