Skip to content

How to exclude an entity field when doing an update ? #1118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
githubyong opened this issue Dec 30, 2021 · 3 comments
Closed

How to exclude an entity field when doing an update ? #1118

githubyong opened this issue Dec 30, 2021 · 3 comments
Labels
status: duplicate A duplicate of another issue type: enhancement A general enhancement

Comments

@githubyong
Copy link

Is there a way to exclude field when doing an update ?
I know the @transient , but it ignore the field when doing insert too.

@schauder
Copy link
Contributor

schauder commented Jan 3, 2022

No, there is currently no feature allowing this.

@schauder schauder added the type: enhancement A general enhancement label Jan 3, 2022
@schauder
Copy link
Contributor

An annotation@InsertOnlyProperty modelled after @ReadOnlyProperty should do the trick.

@schauder
Copy link
Contributor

Duplicate of #637

@schauder schauder marked this as a duplicate of #637 Jan 13, 2022
@schauder schauder added the status: duplicate A duplicate of another issue label Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants