Mybatis中数据库表一对多关联
<result property="addresses" column="id"
select="User.getAddressByUserId"/>
<select id="getUsers"
parameterClass="java.lang.String"
resultMap="get-user-result">
<![CDATA[
select
id,
name,
sex
fro
原创
2013-03-14 13:21:57 ·
2519 阅读 ·
0 评论