Closed as not planned
Description
yejianfengblue opened DATAMONGO-2514 and commented
Is it possible to add an annotation to make a field insertable on creation but not updatable on update? That is an equivalent of JPA @Column
(insertable = true, updatable = false).
For some fields which is part of business key, they should be persisted on creation, but not on update. Currently Spring Data MongoDB checks Spring Data annotation @Transient
and @ReadOnlyProperty
, but both annotations make the field NOT insertable also
Affects: 2.2.6 (Moore SR6)