Repository navigation
Bind EntityFactory to invoking UserContext metadata - #146
Merged
Merged
Conversation
This was referenced Sep 23, 2026
Closed
philipgreat
changed the base branch from
fix/repository-metadata-fail-134
to
main
September 23, 2026 03:36
Contributor
Author
|
Exact-head 1c14f98 CI passed: Build and Test 35815009536 (including trusted-data OWASP scan and retained report), examples 35815009533, PostgreSQL/MySQL 35815009528. Local JDK 21 two-runtime EntityFactoryContextTest passed after merging current main. This adds context/metadata-bound factories and deprecates, but does not remove, the legacy global factory; #134 remains partially open. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partial #134 remediation. EntityFactory.forContext(context) and forMetadata(metadata) bind entity creation to an explicit metadata snapshot; the no-argument global factory is deprecated with a migration hint. The new two-runtime test registers the same entity type name in two independent runtimes, poisons the process-global metadata, and verifies each context still produces its own entity class. This PR is stacked after #145 and changes only EntityFactory plus its regression test. JDK 21 focused test, full Maven reactor, all Java examples, and diff check passed on head b2397d0. Legacy BaseEntity.addRelation and deprecated no-context compatibility paths remain open, so this does not close #134.