File tree Expand file tree Collapse file tree 2 files changed +63
-0
lines changed
cqrs/src/main/java/com/iluwatar/cqrs/dto Expand file tree Collapse file tree 2 files changed +63
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .iluwatar .cqrs .dto ;
2+
3+ public class AuthorDTO {
4+
5+ private String name ;
6+ private String email ;
7+ private String username ;
8+
9+ public AuthorDTO (String name , String email , String username ) {
10+ super ();
11+ this .name = name ;
12+ this .email = email ;
13+ this .username = username ;
14+ }
15+
16+ public AuthorDTO () {
17+ super ();
18+ }
19+
20+ public String getName () {
21+ return name ;
22+ }
23+
24+ public String getEmail () {
25+ return email ;
26+ }
27+
28+ public String getUsername () {
29+ return username ;
30+ }
31+
32+ @ Override
33+ public String toString () {
34+ return "AuthorDTO [name=" + name + ", email=" + email + ", username=" + username + "]" ;
35+ }
36+
37+ }
Original file line number Diff line number Diff line change 1+ package com .iluwatar .cqrs .dto ;
2+
3+ public class BookDTO {
4+
5+ private String title ;
6+ private double price ;
7+
8+ public BookDTO (String title , double price ) {
9+ super ();
10+ this .title = title ;
11+ this .price = price ;
12+ }
13+
14+ public BookDTO () {
15+ super ();
16+ }
17+
18+ public String getTitle () {
19+ return title ;
20+ }
21+
22+ public double getPrice () {
23+ return price ;
24+ }
25+
26+ }
You can’t perform that action at this time.
0 commit comments