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?
|