Any help or hint would be greatly appreciated it!! I am currently using Java 8. I have a web service that takes an sql statement as a parameter. That sql could have many fields in the select statement or parameters for the where clause.
In my java return statement based on the sql queries I could have many fields in the return statement. How can I create a Java object that could have different number of fields based on the number of fields in the query select statement?