I have a project that uses mongodb and after I create default views, I get the following error:
Class
java.lang.UnsupportedOperationException
Message
String-based queries like [find] are currently not supported in this implementation of GORM. Use criteria instead.
Around line 7 of grails-app\views\app\list.gsp
(removed htmls)
at g:message code="default.list.label"
if (!msg) {75: def lst = Localization.findAll(76: "from org.grails.plugins.localization.Localization as x where x.code = ? and x.locale in ('*', ?, ?) order by x.relevance desc",77: [code, locale.getLanguage(), locale.getLanguage() + locale.getCountry()])78: msg = lst.size() > 0 ? lst[0].text : missingValue79:80: if (maxCacheSize > 0) {
Around line 22 of LocalizationMessageSource.java
19:20: @OverRide21: protected String resolveCodeWithoutArguments(String code, Locale locale) {22: return Localization.decodeMessage(code, locale);23: }24:25: public void setResourceLoader(ResourceLoader resourceLoader) {
Trace
I have a project that uses mongodb and after I create default views, I get the following error:
Class
java.lang.UnsupportedOperationException
Message
String-based queries like [find] are currently not supported in this implementation of GORM. Use criteria instead.
Around line 7 of grails-app\views\app\list.gsp
(removed htmls)
at g:message code="default.list.label"
if (!msg) {75: def lst = Localization.findAll(76: "from org.grails.plugins.localization.Localization as x where x.code = ? and x.locale in ('*', ?, ?) order by x.relevance desc",77: [code, locale.getLanguage(), locale.getLanguage() + locale.getCountry()])78: msg = lst.size() > 0 ? lst[0].text : missingValue79:80: if (maxCacheSize > 0) {
Around line 22 of LocalizationMessageSource.java
19:20: @OverRide21: protected String resolveCodeWithoutArguments(String code, Locale locale) {22: return Localization.decodeMessage(code, locale);23: }24:25: public void setResourceLoader(ResourceLoader resourceLoader) {
Trace