Created
February 18, 2014 08:53
-
-
Save odrotbohm/9067129 to your computer and use it in GitHub Desktop.
Renaming collections with Spring Data MongoDB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongoOps.execute("myCollection", new CollectionCallback<Void> { | |
public Void doInCollection(DBCollection collection) { | |
collection.rename("myNewCollection"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment