package io.gmss.fiscad.repositories.metadata;

import io.gmss.fiscad.entities.metadata.MobileDataActeurConcerne;
import io.gmss.fiscad.entities.metadata.MobileDataParcelle;
import io.gmss.fiscad.entities.metadata.MobileDataPersonne;
import org.modelmapper.internal.bytebuddy.dynamic.DynamicType;
import org.springframework.data.jpa.repository.JpaRepository;

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

public interface MobileDataPersonneRepository extends JpaRepository<MobileDataPersonne, Long> {
    //Optional<MobileDataPersonne> findByPersonnePayLoad_TerminalIdAndPersonnePayLoad_ExternalKey(Long terminalId,Long externalKey);
    List<MobileDataPersonne> findAllByTraiterIsFalseAndTerminalId(Long TerminalId);
    Optional<MobileDataPersonne> findFirstByTerminalIdAndEnqueteExternalKey(Long terminalId, Long ExternalKey);

}
