Package org.easycassandra.bean.model

Examples of org.easycassandra.bean.model.CollectionBean


    /**
     * run the test.
     */
    @Test
    public void insertTest() {
        CollectionBean bean = new CollectionBean();
        bean.setId(UUID_ID);
        bean.setList(Arrays.asList("Lion", "Iron", "Animal"));
        bean.setSet(new HashSet<>(bean.getList()));
        Map<String, String> map = new HashMap<>();
        map.put("1", "one");
        map.put("2", "two");
        map.put("3", "three");
        map.put("4", "four");
        map.put("5", "five");
        bean.setMap(map);

        Assert.assertTrue(dao.insert(bean));

    }
View Full Code Here

TOP

Related Classes of org.easycassandra.bean.model.CollectionBean

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.