The method QueryModelDescriptor.getQuery should be able to deal with that. How do you do the parameter replacement?
Florent On 7 Oct 2008, at 10:38, Bogdan Tatar wrote: > I want to make a stateless query in which I should be able to use the > 'IN' syntax.I've wrote a query like this one > > <queryModel name="QUERY_WITH_IN"> > <pattern> > SELECT * FROM Document WHERE ecm:primaryType = 'Type1' AND > rgl:category IN ? > AND ecm:mixinType != 'HiddenInNavigation' AND ecm:isProxy = 1 > </pattern> > <sortable value="true" defaultSortColumn="dc:modified" > defaultSortAscending="false" /> > <max>5</max> > </queryModel> > > I have verified that there is a document on my repository that has the > field 'category' from the schema 'rgl' with one of the values I sent > as > parameters, but no results. > Any suggestion would be great. > Thanks a lot ! -- Florent Guillaume, Director of R&D, Nuxeo Open Source Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87 _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
