Commit 7fb00c41 authored by Noel Alonso's avatar Noel Alonso
Browse files

Añade método que comprueba si es necesita rollback

Esto depende del dato
parent 768e91de
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -36,4 +36,10 @@ public class SettingsRepository extends SettingsRepositoryImpl<Settings, SimpleQ
	public SettingsRepository() {
		super();
	}

	@Override
	protected boolean rollbackIsRequired(Settings currentModel, Settings modelToIndex) {

		return currentModel.getUpdated().getMillis() > modelToIndex.getUpdated().getMillis();
	}
}