I am currently doing the following:
Query q = session.createQuery("select x,s.id from com.package.IdLookupHDO x JOIN com.package.SourceDataHDO s ON x.identifier = s.sourcePrimaryIdentifier");
for (Object obj : q.list()){
}
I think this join query will work without a problem. However I expected the query to give back object arrays in the list method because I have requested two things in my select (IdLookupHDO and id). I have searched around and cannot find an answer but how can I retrieve both selected objects?