File tree Expand file tree Collapse file tree 3 files changed +19
-12
lines changed
cqrs/src/main/java/com/iluwatar/cqrs Expand file tree Collapse file tree 3 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,13 @@ public static void main(String[] args) {
71
71
Book dddBook = queries .getBook ("Domain-Driven Design" );
72
72
List <Book > jBlochBooks = queries .getAuthorBooks ("jBloch" );
73
73
74
+ System .out .println ("Author username : " + nullAuthor );
75
+ System .out .println ("Author eEvans : " + eEvans );
76
+ System .out .println ("jBloch number of books : " + jBlochBooksCount );
77
+ System .out .println ("Number of authors : " + authorsCount );
78
+ System .out .println ("DDD book : " + dddBook );
79
+ System .out .println ("jBloch books : " + jBlochBooks );
80
+
74
81
HibernateUtil .getSessionFactory ().close ();
75
82
}
76
83
Original file line number Diff line number Diff line change 6
6
*/
7
7
public interface ICommandService {
8
8
9
- public abstract void authorCreated (String username , String name , String email );
9
+ void authorCreated (String username , String name , String email );
10
10
11
- public abstract void bookAddedToAuthor (String title , double price , String username );
11
+ void bookAddedToAuthor (String title , double price , String username );
12
12
13
- public abstract void authorNameUpdated (String username , String name );
13
+ void authorNameUpdated (String username , String name );
14
14
15
- public abstract void authorUsernameUpdated (String oldUsername , String newUsername );
15
+ void authorUsernameUpdated (String oldUsername , String newUsername );
16
16
17
- public abstract void authorEmailUpdated (String username , String email );
17
+ void authorEmailUpdated (String username , String email );
18
18
19
- public abstract void bookTitleUpdated (String oldTitle , String newTitle );
19
+ void bookTitleUpdated (String oldTitle , String newTitle );
20
20
21
- public abstract void bookPriceUpdated (String title , double price );
21
+ void bookPriceUpdated (String title , double price );
22
22
23
23
}
Original file line number Diff line number Diff line change 13
13
*/
14
14
public interface IQueryService {
15
15
16
- public abstract Author getAuthorByUsername (String username );
16
+ Author getAuthorByUsername (String username );
17
17
18
- public abstract Book getBook (String title );
18
+ Book getBook (String title );
19
19
20
- public abstract List <Book > getAuthorBooks (String username );
20
+ List <Book > getAuthorBooks (String username );
21
21
22
- public abstract BigInteger getAuthorBooksCount (String username );
22
+ BigInteger getAuthorBooksCount (String username );
23
23
24
- public abstract BigInteger getAuthorsCount ();
24
+ BigInteger getAuthorsCount ();
25
25
26
26
}
You can’t perform that action at this time.
0 commit comments