-
Notifications
You must be signed in to change notification settings - Fork 132
Access to identifier property not guarded properly #711
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
Care to post the full stack trace? Inserts can work if the entity doesn't expose an |
We now check in all places where we optionally use the Id property that an entity actually has an Id property and fall back leniently if the entity doesn't have an identifier property. Also, we use IdentifierAccessor consistently if the property is an identifier property. See #711
We now check in all places where we optionally use the Id property that an entity actually has an Id property and fall back leniently if the entity doesn't have an identifier property. Also, we use IdentifierAccessor consistently if the property is an identifier property. See #711
We now check in all places where we optionally use the Id property that an entity actually has an Id property and fall back leniently if the entity doesn't have an identifier property. Also, we use IdentifierAccessor consistently if the property is an identifier property. See #711
We now check in all places where we optionally use the Id property that an entity actually has an Id property and fall back leniently if the entity doesn't have an identifier property. Also, we use IdentifierAccessor consistently if the property is an identifier property. See #711
Here is the stack trace:
|
From what I can see the Entity is being inserted in the Database, but after that I see this error. |
Thanks a lot. The issue from the stack trace is fixed and you might want to retest against snapshots, specifically |
Hi!
As mentioned in the title, Persistable does not seem to be working correctly with R2DBC.
This interface has 2 methods: getId() and isNew(). The latter seems to be working fine.
But I don't think getId() is working fine as I am get the following error whenever I use the save() method of the ReactiveCrudRepository:
at org.springframework.data.mapping.PersistentEntity.getRequiredIdProperty(PersistentEntity.java:106)
My entity is as follows:
The text was updated successfully, but these errors were encountered: