Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for property placeholder in expireAfter for MongoDB indexes #5049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sangbeenmoon wants to merge 1 commit into spring-projects:main
base: main
Choose a base branch
Loading
from sangbeenmoon:issue/4980

Conversation

Copy link

@sangbeenmoon sangbeenmoon commented Aug 25, 2025

Enables property placeholder resolution (e.g., ${ttl.timeout}) in the @Indexed(expireAfter) attribute by replacing EvaluationContext with ValueEvaluationContext throughout the index resolution pipeline.

  • MongoPersistentEntityIndexResolver : Updated to use ValueEvaluationContext instead of EvaluationContext for evaluating index expressions
  • ExpressionUtils : Modified evaluate method signature to accept Supplier to support property placeholder resolution

Resolves : #4980

  • 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).

injae-kim and dev-jonghoonpark reacted with thumbs up emoji injae-kim reacted with heart emoji injae-kim reacted with rocket emoji
@mp911de mp911de added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Labels
type: enhancement A general enhancement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Can't (still) use properties in @Indexed#expireAfter

AltStyle によって変換されたページ (->オリジナル) /