Compare commits

..

No commits in common. "78ecf98913e90875a39da4a59b19327b931d9ea4" and "36d96b543ace04c4d0a19b2e41597c9fed9624aa" have entirely different histories.

2 changed files with 13 additions and 8 deletions

View File

@ -83,6 +83,7 @@ public class HsOfficeDebitorController implements HsOfficeDebitorsApi {
body.getDebitorRel().setType(DEBITOR.name());
final var debitorRel = mapper.map(body.getDebitorRel(), HsOfficeRelationEntity.class);
entityToSave.setDebitorRel(relRepo.save(debitorRel));
// FIXME em.flush();
} else {
final var debitorRelOptional = relRepo.findByUuid(body.getDebitorRelUuid());
debitorRelOptional.ifPresentOrElse(

View File

@ -109,6 +109,7 @@ public class StringWriter {
}
String apply(final String textToAppend) {
try {
text = textToAppend;
stream(varDefs).forEach(varDef -> {
final var pattern = Pattern.compile("\\$\\{" + varDef.name() + "}", Pattern.CASE_INSENSITIVE);
@ -116,6 +117,9 @@ public class StringWriter {
text = matcher.replaceAll(varDef.value());
});
return text;
} catch (final RuntimeException exc) {
throw exc; // FIXME: just for debugging, remove try/catch before merging to master
}
}
}
}