Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

First commit

  • Loading branch information...
commit 5df84465b5cb18a5b30bc7318f59f2f2b69f06b8 1 parent fb46761
Mauricio Porras P. authored August 04, 2011
BIN  build/classes/com/gn/lab/dao/ChargeMapper.class
Binary file not shown
BIN  build/classes/com/gn/lab/model/Charge.class
Binary file not shown
BIN  build/classes/com/gn/lab/model/ChargeExample$Criteria.class
Binary file not shown
BIN  build/classes/com/gn/lab/model/ChargeExample$Criterion.class
Binary file not shown
BIN  build/classes/com/gn/lab/model/ChargeExample$GeneratedCriteria.class
Binary file not shown
BIN  build/classes/com/gn/lab/model/ChargeExample.class
Binary file not shown
241  build/classes/com/gn/lab/xml/ChargeMapper.xml
... ...
@@ -1,241 +0,0 @@
1  
-<?xml version="1.0" encoding="UTF-8" ?>
2  
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3  
-<mapper namespace="test.dao.ChargeMapper" >
4  
-  <resultMap id="BaseResultMap" type="test.model.Charge" >
5  
-    <!--
6  
-      WARNING - @mbggenerated
7  
-      This element is automatically generated by MyBatis Generator, do not modify.
8  
-    -->
9  
-    <id column="id" property="id" jdbcType="VARCHAR" />
10  
-    <result column="description" property="description" jdbcType="VARCHAR" />
11  
-    <result column="section_id" property="sectionId" jdbcType="VARCHAR" />
12  
-  </resultMap>
13  
-  <sql id="Example_Where_Clause" >
14  
-    <!--
15  
-      WARNING - @mbggenerated
16  
-      This element is automatically generated by MyBatis Generator, do not modify.
17  
-    -->
18  
-    <where >
19  
-      <foreach collection="oredCriteria" item="criteria" separator="or" >
20  
-        <if test="criteria.valid" >
21  
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
22  
-            <foreach collection="criteria.criteria" item="criterion" >
23  
-              <choose >
24  
-                <when test="criterion.noValue" >
25  
-                  and ${criterion.condition}
26  
-                </when>
27  
-                <when test="criterion.singleValue" >
28  
-                  and ${criterion.condition} #{criterion.value}
29  
-                </when>
30  
-                <when test="criterion.betweenValue" >
31  
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
32  
-                </when>
33  
-                <when test="criterion.listValue" >
34  
-                  and ${criterion.condition}
35  
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
36  
-                    #{listItem}
37  
-                  </foreach>
38  
-                </when>
39  
-              </choose>
40  
-            </foreach>
41  
-          </trim>
42  
-        </if>
43  
-      </foreach>
44  
-    </where>
45  
-  </sql>
46  
-  <sql id="Update_By_Example_Where_Clause" >
47  
-    <!--
48  
-      WARNING - @mbggenerated
49  
-      This element is automatically generated by MyBatis Generator, do not modify.
50  
-    -->
51  
-    <where >
52  
-      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
53  
-        <if test="criteria.valid" >
54  
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
55  
-            <foreach collection="criteria.criteria" item="criterion" >
56  
-              <choose >
57  
-                <when test="criterion.noValue" >
58  
-                  and ${criterion.condition}
59  
-                </when>
60  
-                <when test="criterion.singleValue" >
61  
-                  and ${criterion.condition} #{criterion.value}
62  
-                </when>
63  
-                <when test="criterion.betweenValue" >
64  
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
65  
-                </when>
66  
-                <when test="criterion.listValue" >
67  
-                  and ${criterion.condition}
68  
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
69  
-                    #{listItem}
70  
-                  </foreach>
71  
-                </when>
72  
-              </choose>
73  
-            </foreach>
74  
-          </trim>
75  
-        </if>
76  
-      </foreach>
77  
-    </where>
78  
-  </sql>
79  
-  <sql id="Base_Column_List" >
80  
-    <!--
81  
-      WARNING - @mbggenerated
82  
-      This element is automatically generated by MyBatis Generator, do not modify.
83  
-    -->
84  
-    id, description, section_id
85  
-  </sql>
86  
-  <select id="selectByExample" resultMap="BaseResultMap" parameterType="test.model.ChargeExample" >
87  
-    <!--
88  
-      WARNING - @mbggenerated
89  
-      This element is automatically generated by MyBatis Generator, do not modify.
90  
-    -->
91  
-    select
92  
-    <if test="distinct" >
93  
-      distinct
94  
-    </if>
95  
-    <include refid="Base_Column_List" />
96  
-    from charges
97  
-    <if test="_parameter != null" >
98  
-      <include refid="Example_Where_Clause" />
99  
-    </if>
100  
-    <if test="orderByClause != null" >
101  
-      order by ${orderByClause}
102  
-    </if>
103  
-  </select>
104  
-  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
105  
-    <!--
106  
-      WARNING - @mbggenerated
107  
-      This element is automatically generated by MyBatis Generator, do not modify.
108  
-    -->
109  
-    select 
110  
-    <include refid="Base_Column_List" />
111  
-    from charges
112  
-    where id = #{id,jdbcType=VARCHAR}
113  
-  </select>
114  
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
115  
-    <!--
116  
-      WARNING - @mbggenerated
117  
-      This element is automatically generated by MyBatis Generator, do not modify.
118  
-    -->
119  
-    delete from charges
120  
-    where id = #{id,jdbcType=VARCHAR}
121  
-  </delete>
122  
-  <delete id="deleteByExample" parameterType="test.model.ChargeExample" >
123  
-    <!--
124  
-      WARNING - @mbggenerated
125  
-      This element is automatically generated by MyBatis Generator, do not modify.
126  
-    -->
127  
-    delete from charges
128  
-    <if test="_parameter != null" >
129  
-      <include refid="Example_Where_Clause" />
130  
-    </if>
131  
-  </delete>
132  
-  <insert id="insert" parameterType="test.model.Charge" >
133  
-    <!--
134  
-      WARNING - @mbggenerated
135  
-      This element is automatically generated by MyBatis Generator, do not modify.
136  
-    -->
137  
-    insert into charges (id, description, section_id
138  
-      )
139  
-    values (#{id,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{sectionId,jdbcType=VARCHAR}
140  
-      )
141  
-  </insert>
142  
-  <insert id="insertSelective" parameterType="test.model.Charge" >
143  
-    <!--
144  
-      WARNING - @mbggenerated
145  
-      This element is automatically generated by MyBatis Generator, do not modify.
146  
-    -->
147  
-    insert into charges
148  
-    <trim prefix="(" suffix=")" suffixOverrides="," >
149  
-      <if test="id != null" >
150  
-        id,
151  
-      </if>
152  
-      <if test="description != null" >
153  
-        description,
154  
-      </if>
155  
-      <if test="sectionId != null" >
156  
-        section_id,
157  
-      </if>
158  
-    </trim>
159  
-    <trim prefix="values (" suffix=")" suffixOverrides="," >
160  
-      <if test="id != null" >
161  
-        #{id,jdbcType=VARCHAR},
162  
-      </if>
163  
-      <if test="description != null" >
164  
-        #{description,jdbcType=VARCHAR},
165  
-      </if>
166  
-      <if test="sectionId != null" >
167  
-        #{sectionId,jdbcType=VARCHAR},
168  
-      </if>
169  
-    </trim>
170  
-  </insert>
171  
-  <select id="countByExample" parameterType="test.model.ChargeExample" resultType="java.lang.Integer" >
172  
-    <!--
173  
-      WARNING - @mbggenerated
174  
-      This element is automatically generated by MyBatis Generator, do not modify.
175  
-    -->
176  
-    select count(*) from charges
177  
-    <if test="_parameter != null" >
178  
-      <include refid="Example_Where_Clause" />
179  
-    </if>
180  
-  </select>
181  
-  <update id="updateByExampleSelective" parameterType="map" >
182  
-    <!--
183  
-      WARNING - @mbggenerated
184  
-      This element is automatically generated by MyBatis Generator, do not modify.
185  
-    -->
186  
-    update charges
187  
-    <set >
188  
-      <if test="record.id != null" >
189  
-        id = #{record.id,jdbcType=VARCHAR},
190  
-      </if>
191  
-      <if test="record.description != null" >
192  
-        description = #{record.description,jdbcType=VARCHAR},
193  
-      </if>
194  
-      <if test="record.sectionId != null" >
195  
-        section_id = #{record.sectionId,jdbcType=VARCHAR},
196  
-      </if>
197  
-    </set>
198  
-    <if test="_parameter != null" >
199  
-      <include refid="Update_By_Example_Where_Clause" />
200  
-    </if>
201  
-  </update>
202  
-  <update id="updateByExample" parameterType="map" >
203  
-    <!--
204  
-      WARNING - @mbggenerated
205  
-      This element is automatically generated by MyBatis Generator, do not modify.
206  
-    -->
207  
-    update charges
208  
-    set id = #{record.id,jdbcType=VARCHAR},
209  
-      description = #{record.description,jdbcType=VARCHAR},
210  
-      section_id = #{record.sectionId,jdbcType=VARCHAR}
211  
-    <if test="_parameter != null" >
212  
-      <include refid="Update_By_Example_Where_Clause" />
213  
-    </if>
214  
-  </update>
215  
-  <update id="updateByPrimaryKeySelective" parameterType="test.model.Charge" >
216  
-    <!--
217  
-      WARNING - @mbggenerated
218  
-      This element is automatically generated by MyBatis Generator, do not modify.
219  
-    -->
220  
-    update charges
221  
-    <set >
222  
-      <if test="description != null" >
223  
-        description = #{description,jdbcType=VARCHAR},
224  
-      </if>
225  
-      <if test="sectionId != null" >
226  
-        section_id = #{sectionId,jdbcType=VARCHAR},
227  
-      </if>
228  
-    </set>
229  
-    where id = #{id,jdbcType=VARCHAR}
230  
-  </update>
231  
-  <update id="updateByPrimaryKey" parameterType="test.model.Charge" >
232  
-    <!--
233  
-      WARNING - @mbggenerated
234  
-      This element is automatically generated by MyBatis Generator, do not modify.
235  
-    -->
236  
-    update charges
237  
-    set description = #{description,jdbcType=VARCHAR},
238  
-      section_id = #{sectionId,jdbcType=VARCHAR}
239  
-    where id = #{id,jdbcType=VARCHAR}
240  
-  </update>
241  
-</mapper>
19  build/classes/com/gn/lab/xml/Configuration.xml
... ...
@@ -1,19 +0,0 @@
1  
-<?xml version="1.0" encoding="UTF-8" ?>
2  
-<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
3  
-"http://mybatis.org/dtd/mybatis-3-config.dtd">
4  
-<configuration>
5  
-  <environments default="development">
6  
-    <environment id="development">
7  
-      <transactionManager type="JDBC"/>
8  
-      <dataSource type="POOLED">
9  
-        <property name="driver" value="${driver}"/>
10  
-        <property name="url" value="${url}"/>
11  
-        <property name="username" value="${username}"/>
12  
-        <property name="password" value="${password}"/>
13  
-      </dataSource>
14  
-    </environment>
15  
-  </environments>
16  
-  <mappers>
17  
-    <mapper resource="org/mybatis/example/BlogMapper.xml"/>
18  
-  </mappers>
19  
-</configuration>

0 notes on commit 5df8446

Please sign in to comment.
Something went wrong with that request. Please try again.