package com.jsc.oscm.dao;

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

import java.util.List;

public interface MetaDictRepository extends JpaRepository<MetaDict, Integer> {
    @Query(value = "SELECT DISTINCT table_name FROM meta_dict", nativeQuery = true)
    List<Object> getTableNameList();

    @Query(value = "SELECT DISTINCT column_name FROM meta_dict", nativeQuery = true)
    List<Object> getColumnNameList();
}
