I have a problem :
if you do something like this:
Code:
select
oldForm.data as oldData
newForm.data as newData
from
form oldForm,
join form newForm on oldForm.replaced_by_id = newForm.id
then use entityManager.createNativeQuery(sql).getResultList()
it will end up with an error that says column named oldData does not exist. If you take out the aliases, then it will just return the first value for "data" for every column. If you run this through straight JDBC with the alias, it works as expected.
The same issue is given at
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4174Is there a solution to it??
Thanks to help..its urgent..