dynamic finders - Grails: findAllWhere sort/max/offset operator don't work -
I know that the dyanmic finder in grails is only supporting 2 parameters like.
Artifacts = Artifact.findAllByDocumentAndArtifactType (document, ArtifactType, [max: range, offset: startIndex]);
Then I found this to use more than 3 arguments and it works though I have to use max and offset operator.
Artifacts = Artifact.Find all where (document: document, artifact type: artifact type, position: blank, maximum [limit: Offset: startIndex]);
Although this gives the complete list and not asked for the limit. Works everywhere to find the operator? How to use it or limit my findings to a certain extent?
You can use more than dynamic explorers with two parameters
Hope that helps
Comments
Post a Comment