Skip to content

Why Spring Data MongoDB doesn't support cascade save for fields annotated with @DBRef or @DocumentReference? #4775

@yuezk

Description

@yuezk

Hi Team,

I'm new to Spring Data MongoDB and found that the cascade save is not supported in Spring Data MongoDB, as highlighted in the documentation.

image

I did some research and found that there is a workaround to achieve this and lots of questions and answers on this topic.

It looks like this is a common requirement and people are looking for a solution.

I also found a closed issue in this repo, which has been moved to backlog but not planned.

So, I'm curious to know if there is any plan to support cascade save in Spring Data MongoDB in the future. Or is there any specific reason why it is not supported?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflow.com

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions