Exemplo n.º 1
0
  @Override
  public void persist(Commit commit) {
    if (commitRepository.isPersisted(commit)) {
      throw new JaversException(
          JaversExceptionCode.CANT_SAVE_ALREADY_PERSISTED_COMMIT, commit.getId());
    }

    long commitPk =
        commitRepository.save(
            commit.getAuthor(), commit.getProperties(), commit.getCommitDate(), commit.getId());
    cdoSnapshotRepository.save(commitPk, commit.getSnapshots());
  }
Exemplo n.º 2
0
 @Override
 public void setJsonConverter(JsonConverter jsonConverter) {
   globalIdRepository.setJsonConverter(jsonConverter);
   cdoSnapshotRepository.setJsonConverter(jsonConverter);
   finder.setJsonConverter(jsonConverter);
 }