GoogleCloudPlatform / GoogleCloudPlatform/spring-cloud-gcp
Dynamic collection name
- Dominant language
- Java
- Stars
- 551
- Forks
- 349
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 14
Description
I would like to prefix our collections by the environment name
- dev
- staging
- etc..
I would like the annotation `@Document(collecionName = "test")` to be dynamic
We could either use [spring expression language](https://docs.spring.io/spring-framework/docs/3.0.x/reference/expressions.html) for that.
Is this something you would consider to add?
Do you know if there is another way to set the collection name dynamically?
Contributor guide
Research direction
Start by locating how the @Document collectionName value is read and how collection names are tested. Review whether Spring Expression Language can be supported for this annotation, then define completion as environment-dependent collection names working reliably with coverage for the proposed syntax.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100