-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed as not planned
Labels
in: mappingMapping and conversion infrastructureMapping and conversion infrastructurestatus: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement
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)
PixelBumper, shubgene, niark567, mmushfiq and Abdou11
Metadata
Metadata
Assignees
Labels
in: mappingMapping and conversion infrastructureMapping and conversion infrastructurestatus: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement