fix pmd errors
This commit is contained in:
parent
b67719ab32
commit
d8919d88f0
@ -71,6 +71,13 @@ public class App {
|
|||||||
Book dddBook = queries.getBook("Domain-Driven Design");
|
Book dddBook = queries.getBook("Domain-Driven Design");
|
||||||
List<Book> jBlochBooks = queries.getAuthorBooks("jBloch");
|
List<Book> jBlochBooks = queries.getAuthorBooks("jBloch");
|
||||||
|
|
||||||
|
System.out.println("Author username : " + nullAuthor);
|
||||||
|
System.out.println("Author eEvans : " + eEvans);
|
||||||
|
System.out.println("jBloch number of books : " + jBlochBooksCount);
|
||||||
|
System.out.println("Number of authors : " + authorsCount);
|
||||||
|
System.out.println("DDD book : " + dddBook);
|
||||||
|
System.out.println("jBloch books : " + jBlochBooks);
|
||||||
|
|
||||||
HibernateUtil.getSessionFactory().close();
|
HibernateUtil.getSessionFactory().close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,18 +6,18 @@ package com.iluwatar.cqrs.commandes;
|
|||||||
*/
|
*/
|
||||||
public interface ICommandService {
|
public interface ICommandService {
|
||||||
|
|
||||||
public abstract void authorCreated(String username, String name, String email);
|
void authorCreated(String username, String name, String email);
|
||||||
|
|
||||||
public abstract void bookAddedToAuthor(String title, double price, String username);
|
void bookAddedToAuthor(String title, double price, String username);
|
||||||
|
|
||||||
public abstract void authorNameUpdated(String username, String name);
|
void authorNameUpdated(String username, String name);
|
||||||
|
|
||||||
public abstract void authorUsernameUpdated(String oldUsername, String newUsername);
|
void authorUsernameUpdated(String oldUsername, String newUsername);
|
||||||
|
|
||||||
public abstract void authorEmailUpdated(String username, String email);
|
void authorEmailUpdated(String username, String email);
|
||||||
|
|
||||||
public abstract void bookTitleUpdated(String oldTitle, String newTitle);
|
void bookTitleUpdated(String oldTitle, String newTitle);
|
||||||
|
|
||||||
public abstract void bookPriceUpdated(String title, double price);
|
void bookPriceUpdated(String title, double price);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -13,14 +13,14 @@ import com.iluwatar.cqrs.dto.Book;
|
|||||||
*/
|
*/
|
||||||
public interface IQueryService {
|
public interface IQueryService {
|
||||||
|
|
||||||
public abstract Author getAuthorByUsername(String username);
|
Author getAuthorByUsername(String username);
|
||||||
|
|
||||||
public abstract Book getBook(String title);
|
Book getBook(String title);
|
||||||
|
|
||||||
public abstract List<Book> getAuthorBooks(String username);
|
List<Book> getAuthorBooks(String username);
|
||||||
|
|
||||||
public abstract BigInteger getAuthorBooksCount(String username);
|
BigInteger getAuthorBooksCount(String username);
|
||||||
|
|
||||||
public abstract BigInteger getAuthorsCount();
|
BigInteger getAuthorsCount();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user