Examples of CassandraGeneratedIdStrategyTable


Examples of com.impetus.client.generatedId.entites.CassandraGeneratedIdStrategyTable

                            + ThriftClient.class.getName(), e.getMessage());
        }

        try
        {
            CassandraGeneratedIdStrategyTable strategyTable = new CassandraGeneratedIdStrategyTable();
            strategyTable.setName("KK");
            em.persist(strategyTable);
            List<CassandraGeneratedIdStrategyTable> list = em.createQuery(
                    "Select c from CassandraGeneratedIdStrategyTable c").getResultList();
            Assert.assertNotNull(list);
            Assert.assertEquals(1, list.size());
            Assert.assertEquals("KK", list.get(0).getName());
            Object id = list.get(0).getId();
            em.clear();
            strategyTable = em.find(CassandraGeneratedIdStrategyTable.class, id);
            Assert.assertNotNull(strategyTable);
            Assert.assertEquals("KK", strategyTable.getName());

        }
        catch (KunderaException e)
        {
            Assert.fail();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.