Skip to content

GORM not recognizes executeQuery after domain class reloaded #14631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
michal-se opened this issue Dec 29, 2016 · 0 comments
Open

GORM not recognizes executeQuery after domain class reloaded #14631

michal-se opened this issue Dec 29, 2016 · 0 comments

Comments

@michal-se
Copy link

michal-se commented Dec 29, 2016

At runtime, after change in hibernate mapped domain class, I get String-based queries like [executeQuery] are currently not supported in this implementation of GORM UnsupportedOperationException

I suppose that during class reloading, the hibernate's gorm implementation is somehow replaced with mongo's implementation.
It happens only when compile :mongodb:3.0.3 is added to BuildConfig, even though any mongo datastore/domain is not configured. Removal of mongodb plugin solves problem. But I need mongodb in my actual app.

I attached logs with couple of comments what actions I took. test4.txt If logs are not enough to tackle it, I am able to provide sample app.

My env:
Grails version: 2.5.4
java version "1.8.0_112"
plugins used:

    plugins {
		build(":release:3.1.2",
				":rest-client-builder:2.1.1") {
			export = false
		}
		compile ":wslite:0.7.2.0"
		compile ":asset-pipeline:2.5.7"
		compile ':cookie:1.4'

		//runtime ":hibernate:3.6.10.19"
		build ":tomcat:7.0.55.3" // or ":tomcat:8.0.22"
		runtime ":hibernate:3.6.10.18"
		compile ":taggable:1.1.0"
		compile ":mongodb:3.0.3"
    }
jamesfredley referenced this issue in apache/grails-data-mapping Mar 13, 2025
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@jdaugherty jdaugherty transferred this issue from apache/grails-data-mapping Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants