-
Hi I'm using MongoDB datasource (the latest) When I try to call
This is a SoftCrudRepository, but I also tried with DefaultCrudRepository and I'm getting the same result. My User model has an "_id" field which looks like this:
Should this be called "id"? Or why doesn't this work? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Anybody please? The all id based methods seem to be having the same issue. I can't find, delete or update by id. EntityNotFound exception is thrown. I'm sure it's some config problem, but I can't see what's wrong. |
Beta Was this translation helpful? Give feedback.
-
With reference to the mongodb connector docs, try using 'id' as '_id' is reserved. |
Beta Was this translation helpful? Give feedback.
With reference to the mongodb connector docs, try using 'id' as '_id' is reserved.