spring-projects / spring-projects/spring-data-rest
Support for non-updatable fields [DATAREST-530]
@odrotbohm is already working on this.
Since Dec 31, 2020.
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Dave LeBlanc opened DATAREST-530 and commented
Currently with spring-data-jpa and SDR, when we submit an update to an entity that has a non-updatable property (@Column(updatable=false)) we don't get an error message when we try to edit that property - the update won't happen, but we don't get any error notification.
If there's an reasonable way to implement this, my preference would be for an update attempt to that field to throw an error
Issue Links:
-
DATAREST-531 JSON Schema should expose read-only fields based on PersistentProperty.isWritable()
-
DATAJPA-716 JpaPersistentProperty should consider updatable flag of mapping annotations
Referenced from: commits https://github.com/spring-projects/spring-data-rest/commit/70a248870d6fcf555ecdff6800ea9de881d27214, https://github.com/spring-projects/spring-data-rest/commit/f05a6baf11acfab08a2fc8a04cf172e6809641c4
0 votes, 5 watchers
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.