use of com.bitcamp.mvc.model.MemberListXml in project bitcampSCOpen2017 by ryuyj.
the class MemberListXmlController method getMemberListXml.
private MemberListXml getMemberListXml() {
List<MemberXml> memberListXml = new ArrayList<MemberXml>();
List<Member> memberList = memberListService.selectAll();
for (Member member : memberList) {
memberListXml.add(new MemberXml(member.getId(), member.getEmail(), member.getName(), member.getRegisterDate()));
}
return new MemberListXml(memberListXml);
}
Aggregations