You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My entity class extends an audit class with audit fields (createdDate, createdBy, modifiedDate, modifiedBy). My repo extends PagingAndSortingRepository. Sorting is not working if I use any of the audit fields but it works if I pass any of the fields in the entity class.
After further analysis I figured out that I had @JsonIgnore on those audit fields. That was the reason it did not work. I removed it and it is working now. This issue can be closed.
My entity class extends an audit class with audit fields (createdDate, createdBy, modifiedDate, modifiedBy). My repo extends PagingAndSortingRepository. Sorting is not working if I use any of the audit fields but it works if I pass any of the fields in the entity class.
I am using spring data rest 2.7.12.
{{baseUrl}}/{{apiVersion}}/{{apiContext}}/apps?sort=createdDate,desc&size=50
I also noticed "order by" in the generated sql for the entity class fields but not for the audit class fields.
Appreciate your help.
The text was updated successfully, but these errors were encountered: