public void insertIndustry(String industrys) throws XueWenServiceException { List<Object> names = StringToList.tranfer(industrys); for (Object obj : names) { Industry ind = new Industry(); ind.setName(obj.toString()); industryRepository.save(ind); } }
public void insertJobs(String industryclass, String pid) throws XueWenServiceException { List<Object> names = StringToList.tranfer(industryclass); for (Object obj : names) { Jobs ind = new Jobs(); ind.setName(obj.toString()); ind.setpId(pid); jobsRepository.save(ind); } }