Пример #1
0
  public Objective save(Objective objective) {
    objective.setRegisterDate(new Date());
    objective.setUser(session.getLoggedInUser());

    vp.basicValidate(objective);

    return repository.save(objective);
  }
Пример #2
0
  public Objective update(Objective objective) {
    vp.basicValidate(objective);

    return repository.save(objective);
  }