diff --git a/spring-all/src/main/java/org/baeldung/caching/example/Customer.java b/spring-all/src/main/java/org/baeldung/caching/example/Customer.java index c796cc9c60..b2f39b6029 100644 --- a/spring-all/src/main/java/org/baeldung/caching/example/Customer.java +++ b/spring-all/src/main/java/org/baeldung/caching/example/Customer.java @@ -1,21 +1,20 @@ public class Customer { - private int id; - - private String name; - - private String customerAddress; + Customer(){ + this.name=""; + this.customerAddress=""; + } + Customer(String name, String address){ this.name = name; this.customerAddress = address; } - public int getId() { return id; }