update(ejb);
}
}
public void updateUserEducation(UserDTO user){
Education ejb = manager.find(Education.class, user.getSsn());
if( ejb == null ){
ejb = user.getEducation().toEJB(user.getSsn());
persist(ejb);
} else {
ejb.setEducation(user.getEducation().getEducation());
ejb.setEduenroll(user.getEducation().getEduenroll());
update(ejb);
}
}