Skip to content
Snippets Groups Projects
Commit b7d0bede authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#677 - set default keywords

parent d8458599
Branches
Tags
No related merge requests found
Pipeline #6637 failed
...@@ -12,7 +12,7 @@ import java.util.List; ...@@ -12,7 +12,7 @@ import java.util.List;
public class TransactionNameKeywordService implements Resettable public class TransactionNameKeywordService implements Resettable
{ {
private static final Logger LOGGER = LoggerFactory.getLogger(TransactionNameKeywordService.class); private static final Logger LOGGER = LoggerFactory.getLogger(TransactionNameKeywordService.class);
private static final List<String> DEFAULT_KEYWORDS = List.of("income", "einnahme"); private static final List<String> DEFAULT_KEYWORDS = List.of("einnahme", "rückzahlung", "erstattung", "zinsen", "lohn", "gehalt", "income", "refund", "interest", "salary");
private final TransactionNameKeywordRepository transactionNameKeywordRepository; private final TransactionNameKeywordRepository transactionNameKeywordRepository;
...@@ -48,6 +48,8 @@ public class TransactionNameKeywordService implements Resettable ...@@ -48,6 +48,8 @@ public class TransactionNameKeywordService implements Resettable
transactionNameKeywordRepository.save(new TransactionNameKeyword(keyword)); transactionNameKeywordRepository.save(new TransactionNameKeyword(keyword));
} }
} }
LOGGER.debug("Created default transaction name keywords");
} }
public List<String> getMatchingKeywords(String text) public List<String> getMatchingKeywords(String text)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment