I have a very complex SQL query and wonder what is the best way to get its result as a Java entity or JSON String:
SELECT \'2020-06-18 06:35:01\' as \'generatedAt