-->
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.  [ 3 posts ] 
Author Message
 Post subject: QBC question about count
PostPosted: Wed Mar 21, 2007 9:54 am 
Newbie

Joined: Thu Jan 18, 2007 4:45 pm
Posts: 10
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:3.2.1

[b]Name and version of the database you are using: ORACLE 10G


Hi !

How can I use count with QBC, or bettter... can I use count with QBC??? For example:(in HQL)


select CatName, count(*) as qty from Cat

can I do the same in the QBC API???

_________________
Dan Mopont


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 21, 2007 10:47 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
I believe you want this:

http://www.hibernate.org/hib_docs/v3/re ... projection


Top
 Profile  
 
 Post subject: That's it
PostPosted: Wed Mar 21, 2007 5:22 pm 
Newbie

Joined: Thu Jan 18, 2007 4:45 pm
Posts: 10
Ananasi wrote:


Thanks

_________________
Dan Mopont


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

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.