Skip to content

Does it work with Mongodb? #6

Description

@vasya10

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions