I defined a field in Roo with:
field number --fieldName firstNum --type java.lang.Integer
But I really wanted to define it with --notNull.
Can I update this in Roo, or do I have to update the generated files manually outside of the Roo console?
I don't think there is 'delete' or 'change' field command in Roo but it's very simple just to delete field from your class (Roo would take care of updating all related artifacts) and then just add field again from Roo console.
You can keep Roo running when you modifying class outside of Roo - it should detect changes, or it will do it on next restart - pretty flexible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With