79349292

Date: 2025-01-12 03:29:21
Score: 5
Natty:
Report link

JanVerbeke, your approach of either using a table alias or the actual tableName.field works. However, the challenging I am having is when I want to do this dynamically and my frontend doesn't have any idea of the tableName.fieldName but rather the fieldName only. I have a DTO object that contains all the fields I am exposing to the frontend which I want to use for sorting on both the frontend and the backend but due to nested associations I have, I can't get this to work.

Any suggestions will be appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (2): Any suggestions
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Marvian