Skip to content

Instantly share code, notes, and snippets.

@odrotbohm
Created February 18, 2014 08:53
Show Gist options
  • Save odrotbohm/9067129 to your computer and use it in GitHub Desktop.
Save odrotbohm/9067129 to your computer and use it in GitHub Desktop.
Renaming collections with Spring Data MongoDB
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