My favorites | Sign in
Project Home Downloads Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 589 attachment: UserMapper.xml.patch (677 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
### Eclipse Workspace Patch 1.0
#P mybatis-guice
Index: src/test/resources/org/mybatis/guice/sample/mapper/UserMapper.xml
===================================================================
--- src/test/resources/org/mybatis/guice/sample/mapper/UserMapper.xml (revision 5234)
+++ src/test/resources/org/mybatis/guice/sample/mapper/UserMapper.xml (working copy)
@@ -24,7 +24,7 @@
<mapper namespace="org.mybatis.guice.sample.mapper.UserMapper">

<select id="getUser" resultType="org.mybatis.guice.sample.domain.User" parameterType="java.lang.String">
- select * from users where id=#{value}
+ select * from users where id='${user.id}'
</select>

</mapper>
Powered by Google Project Hosting