Add toString method for Customer.
Fix the issue of `CustomizableTraceInterceptor` using `Object.toString()``. Original pull request #668
This commit is contained in:
@@ -26,5 +26,12 @@ public class Customer {
|
||||
|
||||
String firstname;
|
||||
String lastname;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Customer{" +
|
||||
"id=" + id +
|
||||
", firstname='" + firstname + '\'' +
|
||||
", lastname='" + lastname + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user