-
Notifications
You must be signed in to change notification settings - Fork 43
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
Problems adding a Boolean to an existing class #16
Comments
@joergrech it sounds like you're using the grails redis-gorm plugin, which provides domain class integration with redis. This plugin is the vanilla redis plugin that just gives you a connection pool to redis with some helper methods. I'm closing this issue, but please let me know if I'm misunderstanding your question. |
Make the type Boolean, not boolean, since boolean cannot be null, only true or false |
@tednaleid Yes, I was using the redis-gorm plugin. Sorry for the inconvenience. |
Hi,
when I add a Boolean to an existing domain class (that is already used and has instances in Redis) I get the following exception:
I tried to add the constraint nullable:true to the boolean (isValid nullable: true) and tried to use a default value (boolean isValid = false) but that did not help.
Am I doing something wrong or has redis/jedis a problem using nullable booleans or converting missing fields from the redis DB into a null boolean?
The text was updated successfully, but these errors were encountered: