-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MODORDSTOR-379] - Manage updates of custom fields through RecordServ…
…iceImpl (#384) * Manage updates of custom fields through RecordServiceImpl * Add indexes for RecordService queries
- Loading branch information
Showing
7 changed files
with
580 additions
and
35 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/main/java/org/folio/services/record/RecordServiceFactoryImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.folio.services.record; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import org.folio.service.RecordService; | ||
import org.folio.service.RecordServiceImpl; | ||
import org.folio.service.spi.RecordServiceFactory; | ||
|
||
import io.vertx.core.Vertx; | ||
|
||
public class RecordServiceFactoryImpl implements RecordServiceFactory { | ||
|
||
@Override | ||
public RecordService create(Vertx vertx) { | ||
return RecordServiceImpl.createForMultipleTables( | ||
vertx, | ||
Map.of( | ||
"po_line", | ||
List.of("po_line", "order_templates"), | ||
"purchase_order", | ||
List.of("purchase_order", "order_templates"))); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/main/resources/META-INF/services/org.folio.service.spi.RecordServiceFactory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.folio.services.record.RecordServiceFactoryImpl |
2 changes: 2 additions & 0 deletions
2
src/main/resources/templates/db_scripts/order_templates_table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CREATE INDEX IF NOT EXISTS order_templates_customfields_recordservice_idx_gin | ||
ON ${myuniversity}_${mymodule}.order_templates USING GIN ((jsonb->'customFields')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CREATE INDEX IF NOT EXISTS po_line_customfields_recordservice_idx_gin | ||
ON ${myuniversity}_${mymodule}.po_line USING GIN ((jsonb->'customFields')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.