Yes Graham you were right. I thought I had tried that and failed, turns out it works. The below 100% works. Sorry for all the dumb questions. I truly appreciate your time and help.
HQL: select distinct audit from Audit audit join audit.auditTypes at where at.Id IN (:auditTypeIds) Generated SQL: select distinct audit0_.Id as col_0_0_ from audits audit0_ inner join audit_auditTypes audittypes1_ on audit0_.Id=audittypes1_.auditId inner join audittypes audittype2_ on audittypes1_.auditTypeId=audittype2_.Id where audittype2_.Id in (1,2,3,4,5,6,7); On Jan 21, 2:26 pm, Graham Bunce <[email protected]> wrote: > I refer you to my previous post. > > As far as I'm concerned, the HQL I provided works fine with your > mappings as I've listed the SQL that is generated. Are you doing > anything wierd? (old version of NH, using NH Fluent or something?)
-- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
