예제 #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());
  }
예제 #2
0
 @Override
 public void setJsonConverter(JsonConverter jsonConverter) {
   globalIdRepository.setJsonConverter(jsonConverter);
   cdoSnapshotRepository.setJsonConverter(jsonConverter);
   finder.setJsonConverter(jsonConverter);
 }