@Override public void postProcess() { model = new com.maplelabs.framework.guestbook.response.User(); model.setId(domain.getId()); model.setUsername(domain.getUsername()); model.setPassword(domain.getPassword()); model.setEmailAddress(domain.getEmailAddress()); model.setAddress(domain.getAddress()); model.setCreationTime(domain.getCreationTime()); result = model; }
@Override public void preProcess() { model = (User) request.data; domain = new com.maplelabs.framework.guestbook.domain.User(); domain.setId(model.getId()); domain.setUsername(model.getUsername()); domain.setPassword(model.getPassword()); domain.setEmailAddress(model.getEmailAddress()); domain.setAddress(model.getAddress()); domain.setCreationTime(model.getCreationTime()); }