@@ -62,16 +62,16 @@ This project, implement instance of basic feature, <br> you maybe want use for A
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 >
65- 5 - sample rest search request: <br >
66- - http://localhost:9090/api/v2/user/search?firstName=h&orderBy=firstName_asc , gender_desc&page=1&size=5 < br >
65+ 5 - sample rest search request: <br >
66+ ``` http://localhost:9090/api/v2/user/search?firstName=h&orderBy=firstName_asc, gender_desc&page=1&size=5 ```
6767
6868### search v3 base on CriteriaBuilder feature
69691 - query clause, order for result and pagination can define in client Request as queryString and handle in AbstractController <br >
70702 - define Quartet from javaTuples lib that use for define name of field from client, name of field in model, sqlOperation and sqlCondition <br >
71713 - define Sort.Order object of spring with getSortOrderFromPagedQuery method to use for order by Clause<br >
72724 - then use getUserQueryWithCriteriaBuilder in userRepository for create query and get Result<br >
73735 - 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 >
74+ ``` http://localhost:9090/api/v2/user/search?firstName=h&orderBy=firstName_asc, gender_desc&page=1&size=5 ```
7575
7676### test feature
77771 - generate sample data baseOn model with javaFaker <br >
@@ -83,4 +83,4 @@ This project, implement instance of basic feature, <br> you maybe want use for A
8383
8484### dataSource feature
85851 - choose between use simpleDataSource or HikariCp datasource <br >
86- 2 - you can customize properties for dataSource in application.properties
86+ 2 - you can customize properties for dataSource in application.properties
0 commit comments