blob: 65a91154854822ecfac49e659850018da6aad6fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?xml version="1.0" encoding="UTF-8" ?>
<sqlMap namespace="DynamicParameterTestMap">
<select id="SelectStaticSql1" resultClass="string">
<![CDATA[
SELECT `teststring` FROM `dynamicparametertest1` WHERE `testname`="staticsql"
]]>
</select>
<select id="SelectStaticSql2" resultClass="string">
<![CDATA[
SELECT `teststring` FROM `dynamicparametertest2` WHERE `testname`="staticsql"
]]>
</select>
<select id="SelectDynamicTable" parameterClass="string" resultClass="string">
<![CDATA[
SELECT `teststring` FROM `$value$` WHERE `testname`="dynamictable"
]]>
</select>
<select id="SelectDynamicComplex" parameterClass="array" resultClass="string">
<![CDATA[
SELECT CONCAT("##", `teststring`, "$$") FROM `$tablename$` WHERE `testname`=#testname, dbType=varchar#
]]>
</select>
<select id="SelectNoDynamic" parameterClass="string" resultClass="string">
<![CDATA[
SELECT `teststring` FROM `dynamicparametertest1` WHERE `testname`=#value, dbType=varchar#
]]>
</select>
</sqlMap>
|