Hibernate HQL get all fields from a table as fields list and not as an object

Issue

This Content is from Stack Overflow. Question asked by Baiso

I need to get all values from a table and one more from another one, I am close to the solution but with the code below I got the object of the first table but I need the list of all fields:

select new map(t1 as tableOne, t2.day as tableTwoDay) from TableOne t1 left join t1.table2 t2  where ...

t1.* doesn’t work

Someone can help me?
Thanks



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?