[ome-users] QueryService

Chris Allan callan at lifesci.dundee.ac.uk
Fri Nov 6 14:25:13 GMT 2009


Something that looks like this:

Parameters p = new Parameters();
p.setId(1L)
List<Image = iQuery.findAllByQuery(select i from Image i join fetch  
i.pixels where i.id = :id);

??

-Chris
On 6 Nov 2009, at 14:02, Woodbridge, Mark R wrote:

> Hi,
>
> I’m using the client API from Java to run the query:
>
> select i from Image i join fetch i.pixels where i.id = :id
>
> I’m doing this in order to get pixels IDs to pass to the thumbnail  
> service. When I run it as the OMERO super user I get the message:
>
> “Null parameters not allowed: o_id”
>
> I assumed that image Ids would be unique, but it looks like a need  
> to pass the ID of the owner, as well as the image ID. Is this  
> correct? Perhaps I have misunderstood...
>
> Mark.
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users




More information about the ome-users mailing list