c.addWantedField("images.default_pixels", "ImageServerID"); c.addWantedField("images.default_pixels", "Repository"); c.addWantedField("images.default_pixels.Repository", "ImageServerURL");
PixelsMapper.fieldsForPixels(c, "images.default_pixels");
	public static Criteria buildDatasetCriteria(int id)	{		Criteria c = new Criteria();		//Specify which fields we want for the dataset.		c.addWantedField("name");		c.addWantedField("description");		c.addWantedField("owner");		c.addWantedField("images"); 		//Specify which fields we want for the owner.		c.addWantedField("owner", "FirstName");		c.addWantedField("owner", "LastName");		c.addWantedField("owner", "Email");		c.addWantedField("owner", "Institution");		c.addWantedField("owner", "Group");		//Specify which fields we want for the owner's group.		c.addWantedField("owner.Group", "Name");		//Specify which fields we want for the images.		c.addWantedField("images", "name");        c.addWantedField("images", "created");		c.addWantedField("images", "default_pixels");				//Specify which fields we want for the pixels.		c.addWantedField("images.default_pixels", "ImageServerID");        c.addWantedField("images.default_pixels", "Repository");        c.addWantedField("images.default_pixels.Repository", "ImageServerURL");		//Filter by ID.		c.addFilter("id", new Integer(id));		return c;	}