Examples of supportsFkConstraints()


Examples of org.apache.cayenne.dba.DbAdapter.supportsFkConstraints()

        // Invalid schema
        Out.error(SchemaValidator.class, "The database requires rebuilding");

        // Generate schema from the mapping file
        DbGenerator generator = new DbGenerator(adapter, dataMap);
        generator.setShouldCreateFKConstraints(adapter.supportsFkConstraints());
        generator.setShouldCreatePKSupport(!adapter.supportsGeneratedKeys());
        generator.setShouldCreateTables(true);
        generator.setShouldDropPKSupport(true);
        generator.setShouldDropTables(true);
        generator.runGenerator(dataSource);
View Full Code Here

Examples of org.apache.cayenne.dba.DbAdapter.supportsFkConstraints()

        createTables = new HashMap();
        createFK = new HashMap();

        DbAdapter adapter = getAdapter();
        Iterator it = dbEntitiesInInsertOrder.iterator();
        boolean supportsFK = adapter.supportsFkConstraints();
        while (it.hasNext()) {
            DbEntity dbe = (DbEntity) it.next();

            String name = dbe.getName();
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.