Skip to content

Instantly share code, notes, and snippets.

@gscheibel
Created April 4, 2012 16:33
Show Gist options
  • Save gscheibel/2303602 to your computer and use it in GitHub Desktop.
Save gscheibel/2303602 to your computer and use it in GitHub Desktop.
dropSchemaAndDatabase
@Override
public void dropSchemaAndDatabase(SessionFactory sessionFactory) {
MongoDBDatastoreProvider provider = getProvider( sessionFactory );
try{
provider.getDatabase().dropDatabase();
}catch(MongoException ex){
throw log.unableToDropDatabase( ex );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment