Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BudgetMaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
BudgetMaster
Commits
b7d0bede
Commit
b7d0bede
authored
2 years ago
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
#677 - set default keywords
parent
d8458599
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#6637
failed
2 years ago
Stage: external
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
BudgetMasterServer/src/main/java/de/deadlocker8/budgetmaster/transactions/keywords/TransactionNameKeywordService.java
+3
-1
3 additions, 1 deletion
.../transactions/keywords/TransactionNameKeywordService.java
with
3 additions
and
1 deletion
BudgetMasterServer/src/main/java/de/deadlocker8/budgetmaster/transactions/keywords/TransactionNameKeywordService.java
+
3
−
1
View file @
b7d0bede
...
@@ -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
(
"in
co
me"
,
"
einnahme
"
);
private
static
final
List
<
String
>
DEFAULT_KEYWORDS
=
List
.
of
(
"
e
in
nah
me"
,
"
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment