aspose file tools*
The moose likes Object Relational Mapping and the fly likes JDO Get the size of a List Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JDO Get the size of a List" Watch "JDO Get the size of a List" New topic
Author

JDO Get the size of a List

Stephen Foster
Greenhorn

Joined: Apr 23, 2009
Posts: 10
Hi All,

I'm relatively new to writing JDO queries and am unsure if this functionality is possible. Basically I have an object that contains a List object that I persist in a database (google app engine).

i.e.



What I want to do is write a query that only retrieves results back where the size of the List is greater than 3. Is this remotely possible or have I missunderstood some of the capabilities of JDO queries.

I want to write something along the lines of:



SCJP 5.0 80%, SCWCD 82%
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JDO Get the size of a List
 
Similar Threads
two questions
Some fun while Overriding equals
is it ok to assign the the local object reference variable to null ?
Alternative to com.google.common.base.Joiner ?
List's contains(Object o) method doesn't work for object version.