From 9c6d0c9acae84492ea7fc3a5c9dfb98af21225eb Mon Sep 17 00:00:00 2001 From: Otavio Santana Date: Fri, 20 Dec 2024 16:55:31 +0000 Subject: [PATCH] chore: update configuration to oracle nosql Signed-off-by: Otavio Santana --- src/main/java/com/otaviojava/demos/ddd/App.java | 3 ++- src/main/resources/META-INF/microprofile-config.properties | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/otaviojava/demos/ddd/App.java b/src/main/java/com/otaviojava/demos/ddd/App.java index abe71e6..b021aa5 100644 --- a/src/main/java/com/otaviojava/demos/ddd/App.java +++ b/src/main/java/com/otaviojava/demos/ddd/App.java @@ -36,7 +36,8 @@ public static void main(String[] args) { ProductRepository repository = container.select(ProductRepository.class, DatabaseQualifier.ofDocument()) .get(); Manufacturer manufacturer = new Manufacturer(faker.company().name(), faker.address().fullAddress(), faker.phoneNumber().cellPhone()); - Set categories = Set.of(new Category("category1", "description1"), new Category("category2", "description2")); + Set categories = Set.of(new Category("category1", "description1"), + new Category("category2", "description2")); Commerce commerce = faker.commerce(); Product product = new ProductBuilder() .id(UUID.randomUUID().toString()) diff --git a/src/main/resources/META-INF/microprofile-config.properties b/src/main/resources/META-INF/microprofile-config.properties index 26a3fe0..44d56c9 100644 --- a/src/main/resources/META-INF/microprofile-config.properties +++ b/src/main/resources/META-INF/microprofile-config.properties @@ -9,6 +9,7 @@ # You may elect to redistribute this code under either of these licenses. # -jnosql.arangodb.host=localhost:8529 -jnosql.document.database=products + jnosql.keyvalue.database=products +jnosql.document.database=products +jnosql.oracle.nosql.host=http://localhost:8080