Skip to content

Commit 371445d

Browse files
committed
Update Customer.java
1 parent 729b521 commit 371445d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

  • spring-all/src/main/java/org/baeldung/caching/example

‎spring-all/src/main/java/org/baeldung/caching/example/Customer.java‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11

22
public class Customer {
33

4-
54
private int id;
6-
7-
85
private String name;
9-
10-
116
private String customerAddress;
127

8+
Customer(){
9+
this.name="";
10+
this.customerAddress="";
11+
}
12+
1313
Customer(String name, String address){
1414
this.name = name;
1515
this.customerAddress = address;
1616
}
1717

18-
1918
public int getId() {
2019
return id;
2120
}

0 commit comments

Comments
 (0)