@@ -57,14 +57,22 @@ This project, implement instance of basic feature, <br> you maybe want use for A
57573 - use "@validator " annotation on field of entity for validate <br >
58584 - log for validation and save error-message in log file <br >
5959
60- ### search feature
60+ ### search v2 base on NativeQuery feature
61611 - query clause, order for result and pagination can define in client Request as queryString and handle in AbstractController <br >
62622 - buildNativeQueryCondition method in Utils class use for create native query base on request queryString <br >
63633 - dynamic order and direction for sort data handle in daoRepository <br >
64644 - more detail about search feature, see searchEngineV2.drawio <br >
65655 - sample rest search request: <br >
6666- http://localhost:9090/api/v2/user/search?firstName=h&orderBy=firstName_asc , gender_desc&page=1&size=5 <br >
6767
68+ ### search v3 base on CriteriaBuilder feature
69+ 1 - query clause, order for result and pagination can define in client Request as queryString and handle in AbstractController <br >
70+ 2 - define Quartet from javaTuples lib that use for define name of field from client, name of field in model, sqlOperation and sqlCondition <br >
71+ 3 - define Sort.Order object of spring with getSortOrderFromPagedQuery method to use for order by Clause<br >
72+ 4 - then use getUserQueryWithCriteriaBuilder in userRepository for create query and get Result<br >
73+ 5 - sample rest search request: <br >
74+ - http://localhost:9090/api/v2/user/search?firstName=h&orderBy=firstName_asc , gender_desc&page=1&size=5 <br >
75+
6876### test feature
69771 - generate sample data baseOn model with javaFaker <br >
70782 - Spock framework use for test <br >
0 commit comments