use of com.bitcamp.mvc.dao.MemberDao2 in project bitcampSCOpen2017 by ryuyj.
the class MemberUpdateService method update.
@Transactional
public void update(UpdateRequest req) {
dao = sqlSessionTemplate.getMapper(MemberDao2.class);
Member member = dao.selectById(req.getId());
if (member == null) {
throw new MemberNotFoundException("회원 없음 : " + req.getId());
}
dao.updateMember(req.toMember());
}
Aggregations