package com.iluwatar.cqrs.app;

public class App {

  public static void main(String[] args) {
    // TODO Auto-generated method stub

  }

}

@@ -29,110 +29,1974 @@
 p;%0A%0A
-public class App %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A    // TODO Auto-generated method stub%0A
+import java.math.BigInteger;%0Aimport java.util.List;%0A%0Aimport com.iluwatar.cqrs.commandes.CommandServiceImpl;%0Aimport com.iluwatar.cqrs.commandes.ICommandService;%0Aimport com.iluwatar.cqrs.dto.Author;%0Aimport com.iluwatar.cqrs.dto.Book;%0Aimport com.iluwatar.cqrs.queries.IQueryService;%0Aimport com.iluwatar.cqrs.queries.QueryServiceImpl;%0Aimport com.iluwatar.cqrs.util.HibernateUtil;%0A%0A/**%0A * This is the entry of the application%0A *%0A */%0Apublic class App %7B%0A  /**%0A   * Program entry point%0A   * %0A   * @param args%0A   *          command line args%0A   */%0A  public static void main(String%5B%5D args) %7B%0A    ICommandService commands = new CommandServiceImpl();%0A%0A    // Create Authors and Books using CommandService%0A    commands.authorCreated(%22eEvans%22, %22Eric Evans%22, %22eEvans@email.com%22);%0A    commands.authorCreated(%22jBloch%22, %22Joshua Bloch%22, %22jBloch@email.com%22);%0A    commands.authorCreated(%22mFowler%22, %22Martin Fowler%22, %22mFowler@email.com%22);%0A%0A    commands.bookAddedToAuthor(%22Domain-Driven Design%22, 60.08, %22eEvans%22);%0A    commands.bookAddedToAuthor(%22Effective Java%22, 40.54, %22jBloch%22);%0A    commands.bookAddedToAuthor(%22Java Puzzlers%22, 39.99, %22jBloch%22);%0A    commands.bookAddedToAuthor(%22Java Concurrency in Practice%22, 29.40, %22jBloch%22);%0A    commands.bookAddedToAuthor(%22Patterns of Enterprise Application Architecture%22, 54.01, %22mFowler%22);%0A    commands.bookAddedToAuthor(%22Domain Specific Languages%22, 48.89, %22mFowler%22);%0A    commands.authorNameUpdated(%22eEvans%22, %22Eric J. Evans%22);%0A%0A    IQueryService queries = new QueryServiceImpl();%0A%0A    // Query the database using QueryService%0A    Author nullAuthor = queries.getAuthorByUsername(%22username%22);%0A    Author eEvans = queries.getAuthorByUsername(%22eEvans%22);%0A    BigInteger jBlochBooksCount = queries.getAuthorBooksCount(%22jBloch%22);%0A    BigInteger authorsCount = queries.getAuthorsCount();%0A    Book dddBook = queries.getBook(%22Domain-Driven Design%22);%0A    List%3CBook%3E jBlochBooks = queries.getAuthorBooks(%22jBloch%22);%0A%0A    HibernateUtil.getSessionFactory().close();
 %0A  %7D

create main class