You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However we are experiencing the following exception: org.springframework.expression.spel.SpelEvaluationException: EL1007E: Property or field '_id' cannot be found on null
This commit enables a source entity with a one-to-many @DocumentReference lookup property to be instantiated properly when the referenced entity - which contains the linking value - is used as a constructor argument.
See #4484
mp911de
changed the title
modelling relational style One-To-Many with @DocumentReference
Constructor creation using @DocumentReference SpEL referring to self in fails
Aug 29, 2023
This commit enables document reference lookup to use `DocumentReferenceSource` to properly instantiate an entity containig a @DocumentReference `#self` property.
Closes#4484
This commit enables document reference lookup to use `DocumentReferenceSource` to properly instantiate an entity containig a @DocumentReference `#self` property.
Closes#4484
Original Pull Request: #4486
This commit enables document reference lookup to use `DocumentReferenceSource` to properly instantiate an entity containig a @DocumentReference `#self` property.
Closes#4484
Original Pull Request: #4486
Hi!
I am trying to use the
@DocumentReference
annotation as per guidance on modelling a One-To-Many relationship in the reference documentation:https://docs.spring.io/spring-data/mongodb/docs/3.3.6/reference/html/#mapping-usage.document-references
However we are experiencing the following exception:
org.springframework.expression.spel.SpelEvaluationException: EL1007E: Property or field '_id' cannot be found on null
Sample repository re-creating the issue:
https://github.com/joeshadbolt/spring-data-mongodb
Many thanks!
The text was updated successfully, but these errors were encountered: