Mutable models
hawkkiller opened this issue · 5 comments
hawkkiller commented
The idea of having mutable models is bad from the start and has known limitations and issues.
simc commented
Would you mind explaining what you mean by this? If you prefer final properties you're free to do so.
hawkkiller commented
As I can see in the example you have mutable model with all the nullable fields. Generator also iteratively fills that model, I don't see any possibilities to make them final and not nullable.
simc commented
It's just an example. Final fields work just fine with Crimson
hawkkiller commented
simc commented
Add a constructor with these properties. This class makes no sense without