Re: [Hibernate] Criteria.count() again

2004-03-04 Thread Greg Handi
Okay, I've reviewed the following thread (thank-you to Christian for refreshing my memory) and given it some thought. I would like to discuss some thoughts and questions and just generally try to continue the brainstorming... > http://thread.gmane.org/gmane.comp.java.hibernate.devel/4795 > Just

Re: [Hibernate] Criteria.count() again

2004-03-04 Thread Michael Gloegl
Hi, This proposed code seems to me to work on the premise that any aggregate function will be performed against a particular property. Which makes logical sense if you want the sum of a particular property as exampled above. My concern has always been that I want to build one Criteria, call some

Re: [Hibernate] Criteria.count() again

2004-03-04 Thread Greg Handi
... > I don't see this a big problem. Essentially, count() is the only > aggregation function that makes sense without projection. So I think > it is acceptable to have something like > project("id").aggregate("count"). I don't see it as a problem per say, I just thought it was redundant, but if

Re: [Hibernate] Criteria.count() again

2004-03-04 Thread Greg Handi
My appologies if this reply message was sent incomplete once already. > > How about if the Criteria had an .aggregate() method which returned > > an instance of Aggregate which had signatures for the various > > desired functions? Something like this would then be possible: > > > > Criteria crit

[Hibernate] Oracle / HB-708

2004-03-04 Thread Gavin King
Could someone with Oracle please check out HB-708 and see if the bug report is correct, and if so, what should be done. TIA Gavin -- Gavin King JBoss Group +61 410534454 http://hibernate.org --- This SF.Net email is sponsored by: IBM Linux T