Skip to content

[OPENJPA-2977] Stop mutating PersistenceConfiguration and honour mapping files - #186

Merged
cristof merged 3 commits into
masterfrom
OPENJPA-2977
Sep 18, 2026
Merged

cristof merged 3 commits into
masterfrom
OPENJPA-2977

Conversation

@rzo1

@rzo1 rzo1 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

PersistenceUnitInfoImpl.convert() no longer writes into the caller's PersistenceConfiguration; the derived OpenJPA properties go into a copy, and mappingFiles() are now wired into the persistence unit. This also fixes merging a user supplied openjpa.MetaDataFactory, which broke when creating a second EMF from the same configuration, and drops the unused PersistenceProductDerivation.load(PersistenceConfiguration, Map).

…ing files

convert() no longer writes into the caller's configuration. The derived
OpenJPA properties are returned by toProperties() on a copy of the
configuration properties, the managed classes and mapping files are wired
into the persistence unit info, and a user supplied MetaDataFactory is
merged as a proper plugin string. Drop the unused
PersistenceProductDerivation.load(PersistenceConfiguration, Map).
@rzo1 rzo1 self-assigned this Sep 14, 2026
@rzo1
rzo1 requested review from cristof and solomax September 14, 2026 18:25
@cristof
cristof added this pull request to stack #191 September 17, 2026 21:09
@cristof
cristof merged commit 43e2335 into master Sep 18, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants