Skip to content
Advertisement

Tag: pageable

Spring pageable sort on other entity’s nullable attribute

I came across the following problem… I have three entities: and method using Specification for fetching information about Contracts: and now, my application gives the possibility to sort Contract entities by Department name, so there comes Pageable object with sort parameter set to employee.department.name. And the problem arises when Employee object has department parameter set to null… E.g., if all

Advertisement