-->
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: wrong sql statement for a select count query
PostPosted: Thu Jun 03, 2010 10:10 am 
Regular
Regular

Joined: Mon Oct 06, 2003 7:17 am
Posts: 58
Location: Switzerland
Hi

When I execute this jpa query: select count(gr.members) from Group gr where gr.key = :key
then the following sql statement is executed: select count(.) as col_0_0_ from model_group group0_, AbstractParty members1_ where group0_.id=members1_.group_id and group0_.key=?

The Group object has a one-to-many relationship to Member

Does anybody know why there is a dot between the brackets in the count function from the sql statement?

Thanks
Reto


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.