mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 14:16:02 +00:00
add a description of the pattern
This commit is contained in:
1 parent
c572fe885e
commit
7ae9e3ee22
1 file changed
+7
-1
@@ -38,7 +38,13 @@ import com.iluwatar.cqrs.util.HibernateUtil;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* CQRS : Command Query Responsibility Segregation. A pattern used to separate query services from commands or writes
|
* CQRS : Command Query Responsibility Segregation. A pattern used to separate query services from commands or writes
|
||||||
* services.
|
* services. The pattern is very simple but it has many consequences. For example, it can be used to tackle down a
|
||||||
|
* complex domain, or to use other architectures that were hard to implement with the classical way.
|
||||||
|
*
|
||||||
|
* This implementation is an example of managing books and authors in a library. The persistence of books and authors is
|
||||||
|
* done according to the CQRS architecture. A command side that deals with a data model to persist(insert,update,delete)
|
||||||
|
* objects to a database. And a query side that uses native queries to get data from the database and return objects as
|
||||||
|
* DTOs (Data transfer Objects).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class App {
|
public class App {
|
||||||
|
|||||||
Reference in new issue
Block a user