A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB Certification (SCBCD/OCPJBCD)
JPQL Query Dout
Joined: Jun 28, 2007
Jan 25, 2009 22:40:07
select u from User u where size = 2
Is the above a valid JPQL query ?? especially in terms of the use of size function ?
I do not think so , just wanted a confirmation
Joined: Nov 24, 2005
Jan 25, 2009 22:51:01
You need to pass a collection as an argument to the SIZE function.
All roads lead to JavaRanch
I agree. Here's the link:
subject: JPQL Query Dout
Difference Between count() and size
Group by desc in jpql
JPA - need help with query
Join Fetch using EclipseLink
Misunderstood Enthuware Questions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015