Don't you have an IDE?
You will need to cast to read them.
I have no idea what these lines are supposed to be doing:
This is the query you are apprently trying to duplicate.
Since you need both table 1 and 2, thenthe HQL would start:
That will return a List<Object> where each row is an array of two Objects, the first is a table1 and the second is a table2.
Not the use of the bind variable ':name', instead of concatenating your SQL.
You ought to be using bind variables
Campbell Ritchie wrote:
Why? If you are creating an empty List, what is wrong with myList = new XYZList<>();? Why did you choose a linked list rather than an array list?