We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adfa9cb commit 9667122Copy full SHA for 9667122
spring-all/src/main/java/org/baeldung/caching/example/Customer.java
@@ -5,7 +5,7 @@ public class Customer {
5
private String name;
6
private String customerAddress;
7
8
- Customer(){
+ public Customer(){
9
this.name="";
10
this.customerAddress="";
11
}
@@ -26,15 +26,15 @@ public void setId(int id) {
26
public String getName() {
27
return name;
28
29
+
30
+ public void setName(String name) {
31
+ this.name = name;
32
+ }
33
34
public String getCustomerAddress() {
35
return this.customerAddress;
36
37
- public void setName(String name) {
- this.name = name;
- }
-
38
public void setCustomerAddress(String address) {
39
this.customerAddress = this.name + "," + address;
40
0 commit comments