Skip to content

Conversation

@sangbeenmoon
Copy link
Owner

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 : spring-projects#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).

Signed-off-by: Sangbeen Moon <jjabi22@naver.com>
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.

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

2 participants