Skip to content

Consider NULLS precedence using Sort #1280

@spring-projects-issues

Description

@spring-projects-issues

Vladimir Domashnev opened DATAJPA-925 and commented

As of 1.10.2, toJpaOrder(Order, Root<?>, CriteriaBuilder) method of org.springframework.data.jpa.repository.query.QueryUtils ignores null precedence, that is provided by org.springframework.data.domain.Sort.Order nullHandling propery, which is present since 1.7.x. It is used by org.springframework.data.jpa.repository.support.SimpleJpaRepository.getQuery(Specification...), thus affecting many methods of org.springframework.data.jpa.repository.JpaRepository interface


Affects: 1.10.2 (Hopper SR2)

Reference URL: https://github.com/spring-projects/spring-data-jpa/blob/master/src/main/java/org/springframework/data/jpa/repository/query/QueryUtils.java

Issue Links:

  • DATAJPA-754 NullHandling.(NULLS_LAST and NULLS_FIRST) does not work
    ("is duplicated by")
  • DATAJPA-1302 NullHandling.(NULLS_LAST and NULLS_FIRST) does not work
    ("is duplicated by")
  • DATAJPA-1725 Using nullsFirst() or nullsLast() on Sort and JpaSort has no effect on database query
    ("is duplicated by")
  • DATACMNS-904 NullHandling not working
    ("is duplicated by")
  • DATAJPA-825 Take into account org.springframework.data.domain.Sort.NullHandling for JPA Criteria

4 votes, 11 watchers

Metadata

Metadata

Labels

status: supersededAn issue that has been superseded by another

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions