Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query method creation with keyword #144

Closed
21 tasks done
Incarnation-p-lee opened this issue Aug 12, 2018 · 0 comments
Closed
21 tasks done

Query method creation with keyword #144

Incarnation-p-lee opened this issue Aug 12, 2018 · 0 comments
Assignees

Comments

@Incarnation-p-lee
Copy link
Contributor

Incarnation-p-lee commented Aug 12, 2018

New feature on Query Method Creation with Keyword. List the keyword and example in below.

  • AND
List<Person> findByFirstNameAndLastName(String firstName, String lastName)
  • OR
List<Person> findByFirstNameOrCity(String firstName, String city)
  • Is_EQUALS
List<Person> findByFirstName(String firstName)
  • AFTER
List<Person> findByDateBefore(Date date)
  • BEFORE
List<Memo> findByDateBefore(Date date)
  • CONTAINING
List<Person> findByFirstNameContaining(String firstName)
  • BETWEEN (both inclusive)
List<Memo> findByDateBetween(Date startDate, Date endDate)
  • ENDING_WITH
List<Person> findByFirstNameEndsWith(String firstName)
  • EXISTS
Boolean existsByFirstName(String firstName)
  • FALSE
List<Project> findByHasReleasedFalse()
  • GREATER_THAN
List<Project> findByForkCountGreaterThan(Long forkCount)
  • GREATER_THAN_EQUALS
List<Project> findByStarCountGreaterThanEqual(Long count);
  • IN
List<Project> findByCreatorIn(Collection<String> creators);
  • IS Almost the same with IS_EQUAL
  • IS_NOT_NULL
List<Project> findByNameIsNotNull();
  • IS_NULL
List<Project> findByNameIsNull();
  • LESS_THAN
List<Project> findByStarCountLessThan(Long starCount);
  • LESS_THAN_EQUAL
List<Project> findByForkCountLessThanEqual(Long forkCount);
  • LIKE unsupported
  • NEAR unsupported
  • NOT
List<Student> findByFirstNameNot(String firstName)
  • NOT_IN
List<Project> findByCreatorNotIn(Collection<String> creators)
  • NOT_LIKE unsupported
  • REGEX unsupported
  • STARTING_WITH
List<Student> findByFirstNameStartsWith(String firstName)
  • TRUE
List<Project> findByHasReleasedTrue()
  • WITHIN unsupported
Incarnation-p-lee added a commit that referenced this issue Aug 13, 2018
Signed-off-by: Pan Li <panli@microsoft.com>
Incarnation-p-lee added a commit that referenced this issue Aug 13, 2018
* Add find and delete on documentQuery, #144.

Signed-off-by: Pan Li <panli@microsoft.com>
Incarnation-p-lee added a commit that referenced this issue Aug 14, 2018
* Adjust Unit test respectively.

Signed-off-by: Pan Li <panli@microsoft.com>
Incarnation-p-lee added a commit that referenced this issue Aug 14, 2018
* Remove legacy find/delete on DocumentQuery, #144.

* Adjust Unit test respectively.

Signed-off-by: Pan Li <panli@microsoft.com>
Incarnation-p-lee added a commit that referenced this issue Aug 17, 2018
Signed-off-by: Pan Li <panli@microsoft.com>
Incarnation-p-lee added a commit that referenced this issue Aug 17, 2018
Signed-off-by: Pan Li <panli@microsoft.com>
miaosakurai added a commit that referenced this issue Aug 20, 2018
* Implement AFTER and GREATER_THAN keyword

* Refactor AFTER and GREATER_THAN impl

* Fix memo IT failure
Incarnation-p-lee added a commit that referenced this issue Aug 22, 2018
Signed-off-by: Pan Li <panli@microsoft.com>
Incarnation-p-lee added a commit that referenced this issue Aug 22, 2018
* Add keyword support for Greater than equal, #144.

Signed-off-by: Pan Li <panli@microsoft.com>
Incarnation-p-lee added a commit that referenced this issue Aug 22, 2018
Signed-off-by: Pan Li <panli@microsoft.com>
Incarnation-p-lee added a commit that referenced this issue Aug 23, 2018
Signed-off-by: Pan Li <panli@microsoft.com>
Incarnation-p-lee added a commit that referenced this issue Aug 23, 2018
Signed-off-by: Pan Li <panli@microsoft.com>
Incarnation-p-lee added a commit that referenced this issue Aug 23, 2018
Signed-off-by: Pan Li <panli@microsoft.com>
Incarnation-p-lee added a commit that referenced this issue Aug 24, 2018
* Add keyword IS (NOT) NULL, #144.

Signed-off-by: Pan Li <panli@microsoft.com>
Incarnation-p-lee added a commit that referenced this issue Aug 24, 2018
* Add keyword IN and NOT_IN, #144.

Signed-off-by: Pan Li <panli@microsoft.com>
miaosakurai added a commit that referenced this issue Aug 27, 2018
miaosakurai added a commit that referenced this issue Aug 27, 2018
Incarnation-p-lee pushed a commit that referenced this issue Sep 1, 2018
* Add NOT keyword #144

* Add STARTSWITH keyword #144

* Add startswith indexing policy to IT test failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants