3 ms·
Yeah, I don't like JPA because of lack of support of immutable types (records or my own classes that don't have setters, only constructor). If you have data cl
by krzyk 4y ago
Yeah, I don't like JPA because of lack of support of immutable types (records or my own classes that don't have setters, only constructor).
If you have data class with more than 5 fields then you have it wrong. Builders are like lombok and like field injection: hide poor class design.
If using a class hurts, it is badly designed and should hurt until it is refactored/split up into consumable parts.
I use records extensively, but those are in most cases converted classes which were small and immutable. JPA being one of the exceptions (a stuck in the past spec)