@Override
 public List<UserInfo> findAll() {
   List<UserInfo> allUserInfos = new ArrayList<UserInfo>();
   Iterable<UserInfo> userInfos = repo.findAll();
   for (UserInfo userInfo : userInfos) {
     allUserInfos.add(userInfo);
   }
   return allUserInfos;
 }
 @Override
 public UserInfo update(UserInfo entity) {
   return repo.save(entity);
 }
 @Override
 public void delete(UserInfo entity) {
   repo.delete(entity);
 }
 @Override
 public UserInfo findById(Long id) {
   return repo.findOne(id);
 }