These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Nested Collection Grouping in a HQL Query
PostPosted: Sat Jan 27, 2007 3:34 pm 
Newbie

Joined: Tue Oct 24, 2006 2:51 pm
Posts: 19
NHibernate 1.2.-beta2
SQL Server 2000 SP3

I have an EEvent Object that has some properties

EEvent.Id, EEvent.EventDateTime, EEVent.Device

In short terms, i was wondering if is possibile to get a "Collection of Collections" grouped by some criteria, eg. something like a Collection of collections grouped by Device or date range (EEVent properties)

IList Groups
---- IList -> EventGroup
[0] ---- Items -> EEVent - grouped by Device.Id = "49439"
[1] ---- Items -> EEvent - grouped by Device.Id = "33889" // etc...

I think NHibernate here can do only a part of the job, then further postprocessing is needed, just thinking about some creative solution to minimize the postprocessing work to get the needed result

Thanks in advance


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.