Is this possible to use the same document for multiple collections?
@Document(collection="temp")
wanted to store same document in temp, temp1, temp2 etc.
Scenario:
I have one document and the same document will be inserted in the multiple collection on the basis of the condition. is there any way around to get rid of duplication of code and use the same document for inserting in multiple collection.
Is this possible to use the same document for multiple collections? @Document(collection="temp")
wanted to store same document in temp, temp1, temp2 etc.
Scenario: I have one document and the same document will be inserted in the multiple collection on the basis of the condition. is there any way around to get rid of duplication of code and use the same document for inserting in multiple collection.
Tech Stack : Spring boot