package com.its.api.its.repository.vds;

import com.its.api.its.model.entity.vds.TbVdsDtct;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TbVdsDtctRepository extends JpaRepository<TbVdsDtct, String>, JpaSpecificationExecutor<TbVdsDtct> {

    @Query("select p from TbVdsDtct p inner join fetch p.vds left outer join p.link link")
    List<TbVdsDtct> findAll();

}
