package com.jsc.oscm.dao;

import com.jsc.oscm.entity.TargetSensitive;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface TargetSensitiveRepository extends JpaRepository<TargetSensitive, Integer> {

    @Query(value = "SELECT DISTINCT target_country FROM target_sensitive", nativeQuery = true)
    List<Object> getCountryList();
}
