-
Notifications
You must be signed in to change notification settings - Fork 54
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 ignore fields when updating #43
Comments
You mean like transient fields that are not present in the table? |
Only when updating, My table has When I call |
It's possible but you have to do it manually by specifying a projection in your query that doesn't have the fields you don't need. Default projection contains all fields, example of customization is here - https://github.com/infobip/infobip-spring-data-querydsl#JDBCProjections. |
Hm, not sure about updates though (this is only for select), it'd have to have tighter integration with Spring Data JDBC. |
It may be a spring-data-jdbc problem, I can only temporarily attach the corresponding field when updating to avoid it being empty |
Is there any way to ignore then (raw sql is contains:
set created_by = null, set created_date = null
) when updating.The text was updated successfully, but these errors were encountered: