views:

77

answers:

0

Hi there, Is there a way to get the first item of a non indexed collection in HQL, nested in a select statement? f.e. FROM ProjectPhase p WHERE p.Statusses[0].FullFilled = 'True' When p.Statusses is an IList, this works because the list is indexed but if p.Statusses is a bag, this doesn't work (because the items in a bag aren't indexed) Is there a way to work around this problem? Thanks