eventuate-tram/eventuate-tram-sagas

Refactor to reduce copy/paste in SQL code

cer opened this issue · 0 comments

cer commented

These lines are duplicated in non-reactive repository:

sagaInstance.getSagaType(),
sagaInstance.getId(),
sagaInstance.getStateName(),
sagaInstance.getLastRequestId(),
sagaInstance.getSerializedSagaData().getSagaDataType(),
sagaInstance.getSerializedSagaData().getSagaDataJSON(),
sagaInstance.isEndState(),
sagaInstance.isCompensating())

Consider moving into SagaInstanceRepositorySql and renaming it to ...Mapper.