<?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="jp.dip.arimodoki.mapper.GraphMapper">
<select id="getGraph" parameterType="string" resultType="string">
<![CDATA[Select * From tbl_graph Where graph_data->>'category' = #{value}]]>
</select>
<!-- (参考)Graph情報リストを取得するSQL -->
<select id="getGraphList" resultType="string">
<![CDATA[Select * From tbl_graph Order By graph_data->>'category' Desc]]>
</select>
</mapper>
|