Merge pull request #386 from amitbhoraniya/master

Dao Pattern : Create object with reference to Interface
This commit is contained in:
Ilkka Seppälä 2016-02-20 18:34:47 +02:00
commit bbd769b208

View File

@ -51,7 +51,7 @@ public class App {
* @param args command line args.
*/
public static void main(final String[] args) {
final CustomerDaoImpl customerDao = new CustomerDaoImpl(generateSampleCustomers());
final CustomerDao customerDao = new CustomerDaoImpl(generateSampleCustomers());
log.info("customerDao.getAllCustomers(): " + customerDao.getAllCustomers());
log.info("customerDao.getCusterById(2): " + customerDao.getCustomerById(2));
final Customer customer = new Customer(4, "Dan", "Danson");