package com.its.api.its.repository.vms;

import com.its.api.its.model.entity.vms.VwVmsDsplPrst;
import com.its.api.its.model.entity.vms.VwVmsDsplPrstKey;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VwVmsDsplPrstRepository extends JpaRepository<VwVmsDsplPrst, VwVmsDsplPrstKey>, JpaSpecificationExecutor<VwVmsDsplPrst> {

    @Query("select p from VwVmsDsplPrst p where p.vmsCtlrNmbr = :id")
    List<VwVmsDsplPrst> findByIdList(@Param("id") Long id);

}
