Skip to content
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

How to exclude certain columns when updating #508

Closed
SlimskiGM opened this issue Apr 6, 2022 · 1 comment · Fixed by #565
Closed

How to exclude certain columns when updating #508

SlimskiGM opened this issue Apr 6, 2022 · 1 comment · Fixed by #565
Labels
enhancement New feature or request

Comments

@SlimskiGM
Copy link

Hi,

First of all, thank you for the amazing work that you guys are doing!

I'm currently working on an update query that excludes certain columns, I did find a feature that provides excluding them by using ExcludeColumn. However, I was wondering if there's a feature like "updatable" in JPA, where if you set 'false' to the column that you don't mean to update, it doesn't when updating. Thank you again!

here's the reference for this feature : https://docs.jboss.org/hibernate/jpa/2.1/api/javax/persistence/Column.html

image

@vmihailenco
Copy link
Member

vmihailenco commented Apr 6, 2022

We don't have such feature, but there is a similar request to add ,selectonly / ,selectable so perhaps we should add something similar for updates too - see #374

I like that with updatatable / selectable we can combine options together like ,selectable,updatable etc.

@vmihailenco vmihailenco added the enhancement New feature or request label Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants