From fe83361ab94371bebb6d5d72a60010be7fccc8c7 Mon Sep 17 00:00:00 2001 From: Otavio Santana Date: Thu, 15 Feb 2024 11:33:14 +0000 Subject: [PATCH] style: remove unsed imports Signed-off-by: Otavio Santana --- oracle-nosql/src/main/java/org/jnosql/demo/se/beer/App.java | 5 ----- oracle-nosql/src/main/java/org/jnosql/demo/se/beer/App3.java | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/oracle-nosql/src/main/java/org/jnosql/demo/se/beer/App.java b/oracle-nosql/src/main/java/org/jnosql/demo/se/beer/App.java index 19449090..b5abde6a 100644 --- a/oracle-nosql/src/main/java/org/jnosql/demo/se/beer/App.java +++ b/oracle-nosql/src/main/java/org/jnosql/demo/se/beer/App.java @@ -11,15 +11,10 @@ package org.jnosql.demo.se.beer; - -import jakarta.data.Sort; -import jakarta.data.page.Page; -import jakarta.data.page.Pageable; import jakarta.enterprise.inject.se.SeContainer; import jakarta.enterprise.inject.se.SeContainerInitializer; import jakarta.nosql.document.DocumentTemplate; import net.datafaker.Faker; -import org.jnosql.demo.se.car.Car; public class App { public static void main(String[] args) { diff --git a/oracle-nosql/src/main/java/org/jnosql/demo/se/beer/App3.java b/oracle-nosql/src/main/java/org/jnosql/demo/se/beer/App3.java index 3ba3e69f..95970a03 100644 --- a/oracle-nosql/src/main/java/org/jnosql/demo/se/beer/App3.java +++ b/oracle-nosql/src/main/java/org/jnosql/demo/se/beer/App3.java @@ -6,13 +6,14 @@ import jakarta.enterprise.inject.se.SeContainer; import jakarta.enterprise.inject.se.SeContainerInitializer; import net.datafaker.Faker; +import org.eclipse.jnosql.mapping.DatabaseQualifier; public class App3 { public static void main(String[] args) { Faker faker = new Faker(); try (SeContainer container = SeContainerInitializer.newInstance().initialize()) { - BeerRepository repository = container.select(BeerRepository.class).get(); + BeerRepository repository = container.select(BeerRepository.class, DatabaseQualifier.ofDocument()).get(); for (int index = 0; index < 100; index++) { Beer beer = Beer.of(faker); repository.save(beer);