Package com.impetus.kundera.service

Examples of com.impetus.kundera.service.HostConfiguration


        puMap.put(CassandraConstants.CQL_VERSION, CassandraConstants.CQL_VERSION_3_0);

        emf = Persistence.createEntityManagerFactory("partialPropertyOverridePU", puMap);
        em = emf.createEntityManager();

        HostConfiguration hostConfig = new CassandraHostConfiguration(puMap, CassandraPropertyReader.csmd,
                "partialPropertyOverridePU", ((EntityManagerFactoryImpl) emf).getKunderaMetadataInstance());
        Assert.assertEquals(hostConfig.getHosts().get(0).getHost(), "localhost");
        Assert.assertEquals(hostConfig.getHosts().get(0).getPort(), 9160);
    }
View Full Code Here

TOP

Related Classes of com.impetus.kundera.service.HostConfiguration

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.