I have a table product(id, name, cost) and a query
Select id, name from product where name='TV'
which returns two rows.
The result of this query is stored into a list of java.lang.object (list contains 2 objects containing the data I need).
How can I access to product.name and product.id?
List <Object> result = catalogServiceLocal.customQueryProd("s4"); //This is the query I am calling to execute SQL code.
System.out.println("Size of List "+result.size());
System.out.println("List " + result.toString());
And the result is :
6:39:42,877 INFO [stdout] (MSC service thread 1-7) Size of List 2
16:39:42,878 INFO [stdout] (MSC service thread 1-7) List [[Ljava.lang.Object;@661b6318, [Ljava.lang.Object;@1006f107]