Skip to content

Commit

Permalink
Split indexes for prepayment-account and prepayment-amortization
Browse files Browse the repository at this point in the history
  • Loading branch information
ghacupha committed Dec 9, 2024
1 parent d12f956 commit 59eadff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/github/erp/domain/PrepaymentAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@Entity
@Table(name = "prepayment_account")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@org.springframework.data.elasticsearch.annotations.Document(indexName = "prepaymentaccount")
@org.springframework.data.elasticsearch.annotations.Document(indexName = "prepaymentaccount-" + "#{ T(java.time.LocalDate).now().format(T(java.time.format.DateTimeFormatter).ofPattern('yyyy-MM')) }")
public class PrepaymentAccount implements Serializable {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
@Entity
@Table(name = "prepayment_amortization")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@org.springframework.data.elasticsearch.annotations.Document(indexName = "prepaymentamortization")
@org.springframework.data.elasticsearch.annotations.Document(indexName = "prepaymentamortization-" + "#{ T(java.time.LocalDate).now().format(T(java.time.format.DateTimeFormatter).ofPattern('yyyy-MM')) }")
public class PrepaymentAmortization implements Serializable {

private static final long serialVersionUID = 1L;
Expand Down

0 comments on commit 59eadff

Please sign in to comment.