@DbRef does not save child object automatically in spring mongodb data

I am currently using the GA release of Spring Framework Data MongoDB, and @DbRef does not save the child automatically in Spring mongodb data. Can you tell me how I can make it work?

+5
source share
1 answer

Saving child objects is not built into Spring Data MongoDB, so you need to do this manually or you can extend AbstractMongoEventListener , as I described in my article: Spring MongoDB data cascade saves DBRef objects

+9
source

All Articles