-
Notifications
You must be signed in to change notification settings - Fork 197
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Grails 3.3 - OneToOne mapping not working #1173
Comments
This also occurs in a many to one setup |
I have done some debugging: it appears that the normal flow is for a Statement, along with query parameters to be set onto a PreparedStatement. For a OneToOne relationship, the OneToOneType is applied to it. To set the value a function of the type is called: nullSafeSet(...).
|
any plans to fix this? |
I'm having issues with this also. |
I'm able to reproduce the issue with your sample application but after upgrading it to Grails 3.3.9 and GORM 6.1.11 I can't reproduce it anymore and everything works as expected. This is the patch you can apply: diff --git a/gradle.properties b/gradle.properties
index 3b7b524..1365cec 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,3 +1,3 @@
-grailsVersion=3.3.5
-gormVersion=6.1.9.RELEASE
+grailsVersion=3.3.9
+gormVersion=6.1.11.RELEASE
gradleWrapperVersion=3.5 |
yay! thanks @ilopmar ! |
Task List
Steps to Reproduce
./gradlew bootRun
Expected Behaviour
update operation works
Actual Behaviour
update operation fails with exception
Observation:
unique
constract fornose
inFace
domain seems to be the problem3.2.13
create
operation under Grails3.3.0
Environment Information
Example Application
The text was updated successfully, but these errors were encountered: