Skip to content
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

Not all collections are shown via "show collections" #69

Closed
mistermusk opened this issue Feb 20, 2021 · 2 comments
Closed

Not all collections are shown via "show collections" #69

mistermusk opened this issue Feb 20, 2021 · 2 comments

Comments

@mistermusk
Copy link

mistermusk commented Feb 20, 2021

Hello @kaiso Kaiso!

I faced such problem:
I have two models linked via
@OneToOne (fetch = FetchType.EAGER) @JoinProperty (name = "stats").
Everything works fine, but when I try "show collections" in console or view them in mongodb-compass, I see only one - the first (there should be two collections, as I understand it). Please tell me how to display the second collection.
Thank you in advance.

BRGDS

P.S.
example:
"stats": { "_id": "392395918", "_relmongo_target": "FootballMatchStat" }
So I cant find FootballMatchStat collection anywhere

@kaiso
Copy link
Owner

kaiso commented Feb 20, 2021

Hello @mistermusk you should add cascade=CascadeType.PERSIST as explained here

@mistermusk
Copy link
Author

@kaiso Thank you for the reply, found it already)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants