From 409f14ae7bf186489a34b7d15dbf304362f0ad71 Mon Sep 17 00:00:00 2001 From: Otavio Santana Date: Sat, 21 Dec 2024 12:26:02 +0000 Subject: [PATCH] feat: create app Signed-off-by: Otavio Santana --- src/main/java/com/otaviojava/demos/ddd/App.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/otaviojava/demos/ddd/App.java b/src/main/java/com/otaviojava/demos/ddd/App.java index 77e848a..71c140c 100644 --- a/src/main/java/com/otaviojava/demos/ddd/App.java +++ b/src/main/java/com/otaviojava/demos/ddd/App.java @@ -33,8 +33,11 @@ public static void main(String[] args) { var garage = container.select(Garage.class, DatabaseQualifier.ofDocument()).get(); Car car = garage.park(garage.park(Car.of(vehicle))); LOGGER.info("Saving a car: " + car); + Car carFound = garage.checkRegistration(car.getVin()); + LOGGER.info("Car found: " + carFound); } + System.exit(0); } private App() {