I have been starting to use immutability more in java recently and was wondering if I make an immutable java model and create a mongoDB repository for it using spring data can I avoid using setters in the model. Are they needed to set values for the database or can I just create a new object each time?
1.4m articles
1.4m replys
5 comments
56.9k users