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) {
7171 Book dddBook = queries .getBook ("Domain-Driven Design" );
7272 List <Book > jBlochBooks = queries .getAuthorBooks ("jBloch" );
7373
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+
7481 HibernateUtil .getSessionFactory ().close ();
7582 }
7683
Original file line number Diff line number Diff line change 66 */
77public interface ICommandService {
88
9- public abstract void authorCreated (String username , String name , String email );
9+ void authorCreated (String username , String name , String email );
1010
11- public abstract void bookAddedToAuthor (String title , double price , String username );
11+ void bookAddedToAuthor (String title , double price , String username );
1212
13- public abstract void authorNameUpdated (String username , String name );
13+ void authorNameUpdated (String username , String name );
1414
15- public abstract void authorUsernameUpdated (String oldUsername , String newUsername );
15+ void authorUsernameUpdated (String oldUsername , String newUsername );
1616
17- public abstract void authorEmailUpdated (String username , String email );
17+ void authorEmailUpdated (String username , String email );
1818
19- public abstract void bookTitleUpdated (String oldTitle , String newTitle );
19+ void bookTitleUpdated (String oldTitle , String newTitle );
2020
21- public abstract void bookPriceUpdated (String title , double price );
21+ void bookPriceUpdated (String title , double price );
2222
2323}
Original file line number Diff line number Diff line change 1313 */
1414public interface IQueryService {
1515
16- public abstract Author getAuthorByUsername (String username );
16+ Author getAuthorByUsername (String username );
1717
18- public abstract Book getBook (String title );
18+ Book getBook (String title );
1919
20- public abstract List <Book > getAuthorBooks (String username );
20+ List <Book > getAuthorBooks (String username );
2121
22- public abstract BigInteger getAuthorBooksCount (String username );
22+ BigInteger getAuthorBooksCount (String username );
2323
24- public abstract BigInteger getAuthorsCount ();
24+ BigInteger getAuthorsCount ();
2525
2626}
You can’t perform that action at this time.
0 commit comments