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