@Override
  public Output create(Output request) throws ValidationException {
    final OutputImpl outputImpl = implOrFail(request);
    final WriteResult<OutputImpl, String> writeResult = coll.save(outputImpl);

    return writeResult.getSavedObject();
  }
Esempio n. 2
0
 public void save(Account account) {
   repository.save(account);
 }