Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

89 Commits

Repository files navigation

Sreaching on database with Specification

This project contains:

How to use

  • you create your restController and extends SearchController
  • you create your repository and extends SearchRepository
  • you create your service and extends SearchService
  • you create your mapper and extends CommonMapper

Json input structure

{
"condition": "AND",
"rules": [
{
"value": "اکبری",
"field": "lastName",
"operator": "LIKE"
},
{
"condition": "AND",
"rules": [
{
"value": "رضا",
"field": "firstName",
"operator": "LIKE"
},
{
"value": "مدی",
"field": "job.name",
"operator": "LIKE"
}
]
}
]
}

your resultData is like your DTO

You can use Angular Query-builder
Demo

About

Sreaching Dynamicly with Specification

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages