-
Notifications
You must be signed in to change notification settings - Fork 1.1k
"Required identifier property not found" in Kotlin #3685
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
Comments
Thanks for reporting. Which version of data-mongodb are you using? |
Thanks for the quick response. I'm using |
The fix for spring-projects/spring-data-commons#1911 has been released and is available via |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Hi,
I have a Kotlin project with
spring-boot-starter-data-mongodb-reactive
. My sealed classQuestion
has a collection. Inserting and deleting work fine, but using my method for updating a document results in this:Question.kt
looks like this:I'm updating the document with this code:
Specifically, the call to
entityInformation.idAttribute
is failing. It works fine for my other (non-abstract) document class.I've tried the following things:
id
isn't nullid
with@Id
in bothQuestion
andText
@MongoId
id
not abstractid
toObjectId
instead ofString
Is there anything obviously wrong here? Thanks
The text was updated successfully, but these errors were encountered: