Package com.impetus.client.mongodb

Examples of com.impetus.client.mongodb.MongoDBClientFactory


    {
        emf = Persistence.createEntityManagerFactory(persistenceUnit);
        em = emf.createEntityManager();
        getDB();

        MongoDBClientFactory clientFactory = (MongoDBClientFactory) ClientResolver.getClientFactory(persistenceUnit);
        clientFactory.getSchemaManager(null).dropSchema();
        DBCollection collection = db.getCollection("MongoDBEntitySimple");
        Assert.assertTrue(collection.getIndexInfo().isEmpty());
        Assert.assertEquals(0, collection.getCount());
    }
View Full Code Here

TOP

Related Classes of com.impetus.client.mongodb.MongoDBClientFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.