How to use Java records correctly (opens in new tab)
Java records are great for immutable value data, but they are the wrong tool for entities, mutable models, and types whose meaning depends on lifecycle or framework behavior.
Read the original article