Hello,
I have a class with a List:
The class A can be saved. For this I use a simple interface that extends the PagingAndSortingRepository and isCode:public class A { private List<Message> messages = Lists.newArrayList(); }
Spring generated.
Now, the messages List is saved as an Array in MongoDB. But I would like that each Message instance is just
saved in a MongoDB Collection called "message". The Message Class is properly annotated.
Is this possible?
Greetings


Reply With Quote

