summaryrefslogtreecommitdiff
path: root/tests/unit/SQLMap/maps/MySql/Enumeration.xml
diff options
context:
space:
mode:
authorctrlaltca <>2013-01-02 14:42:24 +0000
committerctrlaltca <>2013-01-02 14:42:24 +0000
commitedf2251aca60a970e822079d23933e5b70b26571 (patch)
tree366b6688efbb03f20f47268bea57859cea673c70 /tests/unit/SQLMap/maps/MySql/Enumeration.xml
parent8e5f2510bd577e15095e46afc7d0ba6808549bf8 (diff)
backported all related changes up to 3229 to branch/3.2
Diffstat (limited to 'tests/unit/SQLMap/maps/MySql/Enumeration.xml')
-rw-r--r--tests/unit/SQLMap/maps/MySql/Enumeration.xml59
1 files changed, 0 insertions, 59 deletions
diff --git a/tests/unit/SQLMap/maps/MySql/Enumeration.xml b/tests/unit/SQLMap/maps/MySql/Enumeration.xml
deleted file mode 100644
index b321259e..00000000
--- a/tests/unit/SQLMap/maps/MySql/Enumeration.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<sqlMap namespace="Enumeration" >
-
- <alias>
- <typeAlias alias="Enumeration" type="IBatisNet.DataMapper.Test.Domain.Enumeration, IBatisNet.DataMapper.Test"/>
- </alias>
-
- <resultMaps>
- <resultMap id="enumeration-result" class="Enumeration" >
- <result property="Id" column="Enum_ID"/>
- <result property="Day" column="Enum_Day"/>
- <result property="Color" column="Enum_Color"/>
- <result property="Month" column="Enum_Month" nullValue="All"/>
- </resultMap>
- </resultMaps>
-
- <statements>
-
- <select id="GetEnumerationNullValue"
- parameterClass="Integer"
- resultMap="enumeration-result">
- select
- Enum_ID,
- Enum_Day,
- Enum_Color,
- Enum_Month
- from Enumerations
- where Enum_ID = #value#
- </select>
-
- <select id="GetEnumeration" parameterClass="Integer" resultClass="Enumeration">
- select
- Enum_ID as Id,
- Enum_Day as Day,
- Enum_Color as Color,
- Enum_Month as Month
- from Enumerations
- where Enum_ID = #value#
- </select>
-
- <insert id="InsertEnumViaParameterMap" parameterMap="insert-params" >
- insert into Enumerations
- (Enum_ID, Enum_Day, Enum_Color, Enum_Month)
- values
- (?, ?, ?, ?)
- </insert>
-
- </statements>
-
- <parameterMaps>
- <parameterMap id="insert-params">
- <parameter property="Id" column="Enum_ID" />
- <parameter property="Day" column="Enum_Day"/>
- <parameter property="Color" column="Enum_Color" />
- <parameter property="Month" column="Enum_Month" nullValue="All"/>
- </parameterMap>
- </parameterMaps>
-
-</sqlMap>