I need to select a hundred of parameters from database then return it in a DTO to create an excel file.
I'm using spring data, i think have two solutions:
using multiselect method then define a constructor in DTO with all parameters(the number of parameter is more than 100)
using multiselect method and map the array (Object[]) returned to a DTO=>mapping is hard to implement and not scalable.
Do you have any other idea please?
Thank you.