-
-
Notifications
You must be signed in to change notification settings - Fork 953
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
Referring to Thing.gormPersistentEntity from inside domain class Thing causes exception during build #12660
Comments
I am not sure about the reason to do the above but you could workaround the problem by doing the following:
I think the reason you are seeing the above behavior is that GORM is not loaded when you are actually setting |
I believe this is expected behaviour and not a bug. |
I believe that |
Yes, I think you should directly access the Thanks! |
@peter-hal-con Can you articulate why it is that you want to have a static property in a domain class whose value is that of the domain class' |
Expected Behavior
./gradlew build
should not throw exception
Actual Behaviour
Steps To Reproduce
Environment Information
$ uname -a
Linux redacted 3.10.0-1160.2.1.el7.x86_64 #1 SMP Mon Sep 21 21:00:09 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux
$ java --version
openjdk 11.0.15 2022-04-19 LTS
OpenJDK Runtime Environment Corretto-11.0.15.9.1 (build 11.0.15+9-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.15.9.1 (build 11.0.15+9-LTS, mixed mode)
Example Application
https://github.com/spierepf/example2
Version
5.1.2
The text was updated successfully, but these errors were encountered: