darrachequesne / spring-data-jpa-datatables

Spring Data JPA extension to work with the great jQuery plugin DataTables (https://datatables.net/)
Apache License 2.0
447 stars 173 forks source link

orderBy joined column #103

Closed Mike-the-one closed 5 years ago

Mike-the-one commented 5 years ago

How to perform an orderBy on a joined column?

E.g. I have a table product, and a joined column productInventory, productInventory has property quantity, so on the datatable, I will display all columns on product table AND quantity from productInventory table.

When I click on the quantity header, the table is not sorted by productinventory.quantity.

how I can do that?

thanks

Mike-the-one commented 5 years ago

Figured out. use object.property.