-->
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.  [ 2 posts ] 
Author Message
 Post subject: HQL subquery error about correlated nesting
PostPosted: Sat Aug 14, 2010 5:39 pm 
Newbie

Joined: Sat Jul 31, 2010 6:19 pm
Posts: 1
In Java Persistence with Hibernate Charpter14 p660

The correlated subquery is:
from User u where 10 < (
select count(i) from u.items i where i.successfulBid is not null
)

I modify the correlated nesting example like these:
from User u where 10 < (
select count(i) from u.items i where i.successfulBid.successful= true
)

When I test it with Hibernate Tools 3.3.1 in Eclipse Galileo SR2,it report that :
Error
Sun Aug 15 05:27:37 CST 2010
org.hibernate.QueryException: could not resolve property: items of: auction.model.User [from auction.model.User u where 10 < (
select count(i) from u.items i where i.successfulBid.successful= true
)]

How to fix it, can anyone give me some clues?


Top
 Profile  
 
 Post subject: Re: HQL subquery error about correlated nesting
PostPosted: Mon Aug 16, 2010 5:44 am 
Beginner
Beginner

Joined: Thu Dec 11, 2008 8:18 am
Posts: 35
send the code. may be configuration is missing.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.