Created
April 4, 2012 16:33
-
-
Save gscheibel/2303602 to your computer and use it in GitHub Desktop.
dropSchemaAndDatabase
This file contains 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
@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