We allow {{@Immutable}} on an entity and on an embeddable. Should we allow {{@Mutability}} in those targets as well?
If so, what is the semantic? Does it transitively apply the {{MutabilityPlan}} to all of the managed-type’s attributes? Or does it apply just to the managed-type itself?
Not sure that {{MutabilityPlan}} applied just to the entity makes sense. Hibernate has very specific needs for the {{MutabilityPlan}} related to an entity for proper caching behavior, etc. |
|