Package org.b3log.latke.repository.jdbc.util

Examples of org.b3log.latke.repository.jdbc.util.FieldDefinition


        }

        final Map<String, List<FieldDefinition>> map = new HashMap<String, List<FieldDefinition>>();
        final List<FieldDefinition> dList = new ArrayList<FieldDefinition>();

        FieldDefinition definition = new FieldDefinition();
        definition.setName("oId");
        definition.setIsKey(true);
        definition.setType("String");
        dList.add(definition);

        definition = new FieldDefinition();
        definition.setName("col1");
        definition.setType("int");
        dList.add(definition);

        definition = new FieldDefinition();
        definition.setName("col2");
        definition.setType("String");
        dList.add(definition);

        definition = new FieldDefinition();
        definition.setName("col3");
        definition.setType("double");
        dList.add(definition);

        definition = new FieldDefinition();
        definition.setName("col4");
        definition.setType("boolean");
        dList.add(definition);

        map.put("basetable", dList);
        JdbcRepositories.setRepositoriesMap(map);
    }
View Full Code Here

TOP

Related Classes of org.b3log.latke.repository.jdbc.util.FieldDefinition

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.