Skip to content

Avoid creating a StandardEnvironment per persistent property - #2432

Open
pauljonesnz wants to merge 1 commit into
spring-projects:mainfrom
pauljonesnz:gh-2431
Open

pauljonesnz wants to merge 1 commit into
spring-projects:mainfrom
pauljonesnz:gh-2431

Conversation

@pauljonesnz

@pauljonesnz pauljonesnz commented Nov 16, 2026 •

Copy link
Copy Markdown

SqlIdentifierExpressionEvaluator now creates its default StandardEnvironment on first use. Previously every BasicRelationalPersistentProperty created one, which was discarded when RelationalMappingContext.applyDefaults() replaced the property's evaluator.

Closes #2431

  • You have read the Spring Data contribution guidelines.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

SqlIdentifierExpressionEvaluator now creates its default StandardEnvironment on first use. Previously every BasicRelationalPersistentProperty created one, which was discarded when RelationalMappingContext.applyDefaults() replaced the property's evaluator.

Closes spring-projects#2431

Signed-off-by: Paul Jones <info@pauljones.co.nz>
@mp911de mp911de self-assigned this Nov 18, 2026
@mp911de mp911de added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task A general task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid creating a StandardEnvironment for every persistent property

3 participants