Getters and setters in domain classes defining a field #12159
Replies: 1 comment
-
Archiving for now. We are trying to start fresh discussions in 2024. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In previous versions of Grails, we were able to define a new field in a domain class just defining the getter and the setter but it does not seem to be the case anymore.
You can find a project at https://github.com/frangarcia/project3311/tree/v0.1 (using grails 3.3.11), where I have defined a single domain class Book like this
This used to work in the past, but now we are getting this error
This issue seems to be fixed adding the field to the domain class and of course leaving the getter and setter but I wonder if there has been any recent change on this or it is just a bug.
Beta Was this translation helpful? Give feedback.
All reactions