I\'ve the following scenario..
I am writing some tool that run user-entered query against the database and return the result..
The simplest way is to return
What would the caller do with a class that is generated on the fly and which his code therefore cannot know? The only way to access it would be via reflection. Returning a List or Map would actually be a much cleaner and more usable design.
List
Map