public class T_user {
private Integer id;
private String username;
private String telephone;
private Date birthday;
private List<T_account> t_account;
---set get方法----
}
public class T_account implements Serializable {
private Integer id;
private Integer uid;
private Double money;
----set get 方法------
}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yjg.mybatis.mapper.AccountMapper">
<!-- <select id="findAll" resultType="com.yjg.mybatis.bean.T_account">
select * from t_account
</select>-->
<select id="findUserAll" resultType="com.yj