entityManager.persist(subject);
}
@Override
public Subject update(Integer id, Subject subject){
Subject oldSubject = findById(id);
oldSubject.setCode(subject.getCode());
oldSubject.setName(subject.getName());
oldSubject.setSks(subject.getSks());
return entityManager.merge(oldSubject);
}