-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Allow Data Couchbase's type key to be configured via application properties #19789
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
Allow Data Couchbase's type key to be configured via application properties #19789
Conversation
|
@grudir Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much for the PR. I've left a couple of comments. If you have time, could you please take a look and, if you agree with the suggestions, update your changes accordingly?
| { | ||
| "name": "spring.data.couchbase.type-key", | ||
| "description": "Property key used by Couchbase as the document type.", | ||
| "defaultValue": "_class" | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no need for additional metadata here. It will be automatically generated from the new field on CouchbaseDataProperties
| /** | ||
| * The type key to use if a complex type was identified. | ||
| */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good if this description was similar to the javadoc for typeKey(). Perhaps something like the following:
Name of the field that will store the type information for complex types when using MappingCouchbaseConverter
|
@grudir Thank you for signing the Contributor License Agreement! |
|
@wilkinsona thank you for the lightning fast review and feedback! Comments are addressed. |
c6d0ca1 to
1c11556
Compare
|
@wilkinsona I missed that |
|
@grudir We don’t add new features in maintenance releases I’m afraid. Please keep this PR open and we’ll hopefully include it 2.3. |
|
@grudir thank you for making your first contribution to Spring Boot. |
Provide the ability to customize Couchbase Data type key.