@Override
	public boolean updateProject(Long projectid, Long rowId, String newValue) {
		try{
			Project project = entityManager.find(Project.class, projectid);
			if(rowId == 1){
				project.setProjectname(newValue);
			}else if(rowId == 2){
				Long newHostId = Long.parseLong(newValue);
				project.setHostid(newHostId);
			}else if(rowId == 3){
				double newMoney = Double.parseDouble(newValue);
				project.setProjectmoney(newMoney);
			}else if(rowId == 4){
				Date deadline = Date.valueOf(newValue);
				project.setDeadline(deadline);
			}
			entityManager.merge(project);
		}catch(Exception e){
			e.printStackTrace();
			return false;
		}		
		return true;
	}