jakartaee / jakartaee/persistence
@ExcludedFromVersioning and EntityAgent
A pull request for this has already been merged.
- #1184 by @gavinking — merged
- Dominant language
- Java
- Stars
- 268
- Forks
- 78
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 13
Description
The way `@ExcludedFromVersioning` is defined creates an expectation that it also affects `EntityAgent.update()`. But since an `EntityAgent` doesn't know which fields of an entity have changed, this results in ugly SQL.
I think that for now we should say that a provider is permitted to ignore `@ExcludedFromVersioning` when an entity is updated via an agent.
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.
Research direction
Start by reviewing the issue's discussion of EntityAgent.update() and the merged pull request #1184. The work is done when the persistence specification clearly states that a provider may ignore @ExcludedFromVersioning for entities updated through an agent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100