Skip to content

Commit

Permalink
style: remove unsed imports
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Feb 15, 2024
1 parent 9104fea commit fe83361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions oracle-nosql/src/main/java/org/jnosql/demo/se/beer/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion oracle-nosql/src/main/java/org/jnosql/demo/se/beer/App3.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fe83361

Please sign in to comment.