Skip to content

Add an "InsertOnly" annotation to support a write-once semantic. [DATAJDBC-416] #637

Closed
@spring-projects-issues

Description

@spring-projects-issues

Tyler K Van Gorder opened DATAJDBC-416 and commented

It would be nice to mark attributes on an entity as "InsertOnly", such that they are included during and insert but excluded from an update. A use-case for such an annotation can be applied to the "created" auditing columns. 

You want to ensure the auditing columns are set when the entity is inserted and you want to prevent those same fields from being overwritten during the update. 


1 votes, 2 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions