<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ga.api.service.upload.LookupMapper">

    <!--
        동적 테이블/컬럼 조회.
        ${} 사용 — LookupCache.preload() 에서 whitelist 검증 후 호출한다.
    -->
    <select id="selectAll" resultType="java.util.HashMap">
        SELECT ${sourceField} AS source_value,
               ${targetField} AS target_value
        FROM ${table}
    </select>

</mapper>
