Search in sources :

Example 1 with MemberXml

use of com.bitcamp.mvc.model.MemberXml 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);
}
Also used : ArrayList(java.util.ArrayList) MemberListXml(com.bitcamp.mvc.model.MemberListXml) Member(com.bitcamp.mvc.model.Member) MemberXml(com.bitcamp.mvc.model.MemberXml)

Aggregations

Member (com.bitcamp.mvc.model.Member)1 MemberListXml (com.bitcamp.mvc.model.MemberListXml)1 MemberXml (com.bitcamp.mvc.model.MemberXml)1 ArrayList (java.util.ArrayList)1