return uiBeans;
}
public User toPersistenceBean(UserUI uiBean) {
User user = null;
if (uiBean != null) {
user = new User();
user.setFirstName(uiBean.getFirstName());
user.setId(uiBean.getId());
user.setLastName(uiBean.getLastName());
user.setPassword(uiBean.getPassword());
user.setUsername(uiBean.getUsername());
user.setAccountType(uiBean.getAccountType());
user.setBillingAddress(uiBean.getBillingAddress());
user.setCreateadBy(uiBean.getCreateadBy());
user.setCreatedDate(uiBean.getCreatedDate());
user.setDescription(uiBean.getDescription());
user.setEmail(uiBean.getEmail());
user.setLastLoggedIn(uiBean.getLastLoggedIn());
user.setMobilePhone(uiBean.getMobilePhone());
user.setModifiedBy(uiBean.getModifiedBy());
user.setModifiedDate(uiBean.getModifiedDate());
user.setNotes(uiBean.getNotes());
user.setOfficePhone(uiBean.getOfficePhone());
}
return user;
}