package io.gmss.fiscad.repositories.metadata;

import io.gmss.fiscad.entities.metadata.MobileDataActeurConcerne;
import io.gmss.fiscad.entities.metadata.MobileDataPiece;
import io.gmss.fiscad.entities.metadata.MobileDataUniteLogement;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface MobileDataUniteLogementRepository extends JpaRepository<MobileDataUniteLogement, Long> {
    //Optional<MobileDataUniteLogement> findByUniteLogementPaylaod_TerminalIdAndUniteLogementPaylaod_ExternalKey(Long terminalId,Long externalKey);
    List<MobileDataUniteLogement> findAllByTraiterIsFalseAndTerminalId(Long TerminalId);
    Optional<MobileDataUniteLogement> findFirstByTerminalIdAndEnqueteExternalKey(Long terminalId, Long ExternalKey);

}
