[JAVA-14174] Renamed paterns to paterns-module (#12718)
* [JAVA-14174] Renamed paterns to paterns-module * [JAVA-14174] naming fixes Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
package com.baeldung.dip.mainapp;
|
||||
|
||||
import com.baeldung.dip.daoimplementations.MapCustomerDao;
|
||||
import com.baeldung.dip.entities.Customer;
|
||||
import com.baeldung.dip.services.CustomerService;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class MainApplication {
|
||||
|
||||
public static void main(String args[]) {
|
||||
var customers = new HashMap<Integer, Customer>();
|
||||
customers.put(1, new Customer("John"));
|
||||
customers.put(2, new Customer("Susan"));
|
||||
CustomerService customerService = new CustomerService(new SimpleCustomerDao(customers));
|
||||
customerService.findAll().forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
module com.baeldung.dip.mainapp {
|
||||
requires com.baeldung.dip.entities;
|
||||
requires com.baeldung.dip.daos;
|
||||
requires com.baeldung.dip.daoimplementations;
|
||||
requires com.baeldung.dip.services;
|
||||
exports com.baeldung.dip.mainapp;
|
||||
}
|
||||
Reference in New Issue
Block a user