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