Skip to content

Commit

Permalink
chore: update configuration to oracle nosql
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Dec 20, 2024
1 parent fc7f5a7 commit 9c6d0c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/otaviojava/demos/ddd/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Category> categories = Set.of(new Category("category1", "description1"), new Category("category2", "description2"));
Set<Category> categories = Set.of(new Category("category1", "description1"),
new Category("category2", "description2"));
Commerce commerce = faker.commerce();
Product product = new ProductBuilder()
.id(UUID.randomUUID().toString())
Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/META-INF/microprofile-config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9c6d0c9

Please sign in to comment.