diff --git a/src/main/java/org/springframework/samples/petclinic/newDataStore/NewOwnerStore.java b/src/main/java/org/springframework/samples/petclinic/newDataStore/NewOwnerStore.java index 1921e1448..3d1264d6e 100644 --- a/src/main/java/org/springframework/samples/petclinic/newDataStore/NewOwnerStore.java +++ b/src/main/java/org/springframework/samples/petclinic/newDataStore/NewOwnerStore.java @@ -78,7 +78,7 @@ public class NewOwnerStore { if(iterator.hasNext()) { Owner oldOwner = iterator.next(); if(id != oldOwner.getId() || !ownerStore.get(id).equals(oldOwner)) { - ownerStore.put(id, convertToStaticOwner(oldOwner); + ownerStore.put(id, StaticOwner.convertToStaticOwner(oldOwner)); inconsistencies++; violation(id, StaticOwner.convertToStaticOwner(oldOwner), ownerStore.get(id)); } diff --git a/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java b/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java index e0f45b396..80b0cf4c2 100644 --- a/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java +++ b/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java @@ -117,7 +117,7 @@ class OwnerController { String pattern = lastName + "*"; NewOwnerStore newStore = NewOwnerStore.getInstance(owners); - newStore.populateStore(); + newStore.forklift(); HashMap storeMap = newStore.getStore();