Skip to content

Commit 8881950

Browse files
committed
add toString() to BookDTO
1 parent 51bcee5 commit 8881950

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cqrs/src/main/java/com/iluwatar/cqrs/dto/BookDTO.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@ public double getPrice() {
2323
return price;
2424
}
2525

26+
@Override
27+
public String toString() {
28+
return "BookDTO [title=" + title + ", price=" + price + "]";
29+
}
30+
2631
}

0 commit comments

Comments
 (0)