You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this might have been encountered already or not but I'm trying to use DetachedCriteria with Mongo in which it doesn't appear hints are recognized. These work with regular criteria
{code}
def detachedCriteria = {
offset theOffset
max theLimit
order sortBy, sortOrder
eq 'user', user
arguments hint: ['dateCreated': 1]
} as DetachedCriteria
No signature of method: grails.gorm.DetachedCriteria.arguments() is applicable for argument types: (java.util.LinkedHashMap) values: [[hint:[dateCreated:1]]]. Stacktrace follows:
groovy.lang.MissingMethodException: No signature of method: grails.gorm.DetachedCriteria.arguments() is applicable for argument types: (java.util.LinkedHashMap) values: [[hint:[dateCreated:1]]]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
{code}
The text was updated successfully, but these errors were encountered:
Original Reporter: samd
Environment: Not Specified
Version: Not Specified
Migrated From: http://jira.grails.org/browse/GPMONGODB-195
Not sure if this might have been encountered already or not but I'm trying to use DetachedCriteria with Mongo in which it doesn't appear hints are recognized. These work with regular criteria
{code}
def detachedCriteria = {
offset theOffset
max theLimit
order sortBy, sortOrder
eq 'user', user
arguments hint: ['dateCreated': 1]
} as DetachedCriteria
No signature of method: grails.gorm.DetachedCriteria.arguments() is applicable for argument types: (java.util.LinkedHashMap) values: [[hint:[dateCreated:1]]]. Stacktrace follows:
groovy.lang.MissingMethodException: No signature of method: grails.gorm.DetachedCriteria.arguments() is applicable for argument types: (java.util.LinkedHashMap) values: [[hint:[dateCreated:1]]]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
{code}
The text was updated successfully, but these errors were encountered: