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()); body.getDebitorRel().setType(DEBITOR.name());
final var debitorRel = mapper.map(body.getDebitorRel(), HsOfficeRelationEntity.class); final var debitorRel = mapper.map(body.getDebitorRel(), HsOfficeRelationEntity.class);
entityToSave.setDebitorRel(relRepo.save(debitorRel)); entityToSave.setDebitorRel(relRepo.save(debitorRel));
// FIXME em.flush();
} else { } else {
final var debitorRelOptional = relRepo.findByUuid(body.getDebitorRelUuid()); final var debitorRelOptional = relRepo.findByUuid(body.getDebitorRelUuid());
debitorRelOptional.ifPresentOrElse( debitorRelOptional.ifPresentOrElse(

View File

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