Skip to content

Conversation

sangbeenmoon
Copy link

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

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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