Examples of CassandraGeneratedIdWithOutTableGenerator


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

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

        try
        {
            CassandraGeneratedIdWithOutTableGenerator withOutTableGenerator = new CassandraGeneratedIdWithOutTableGenerator();
            withOutTableGenerator.setName("Kuldeep Mishra");
            em.persist(withOutTableGenerator);
            List<CassandraGeneratedIdWithOutTableGenerator> list = em.createQuery(
                    "Select c from CassandraGeneratedIdWithOutTableGenerator c").getResultList();
            Assert.assertNotNull(list);
            Assert.assertEquals(1, list.size());
            Assert.assertEquals("Kuldeep Mishra", list.get(0).getName());
            Object id = list.get(0).getId();
            em.clear();
            withOutTableGenerator = em.find(CassandraGeneratedIdWithOutTableGenerator.class, id);
            Assert.assertNotNull(withOutTableGenerator);
            Assert.assertEquals("Kuldeep Mishra", withOutTableGenerator.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.