Package org.apache.cayenne.testdo.testmap

Examples of org.apache.cayenne.testdo.testmap.GeneratedF1


        DbEntity joinTableEntity = context.getEntityResolver().getDbEntity(
                joinTable.getTableName());
        DbAttribute pkAttribute = (DbAttribute) joinTableEntity.getAttribute("ID");
        Number pk = (Number) adapter.getPkGenerator().generatePk(node, pkAttribute);

        GeneratedF1 f1 = context.newObject(GeneratedF1.class);
        GeneratedF2 f2 = context.newObject(GeneratedF2.class);
        f1.addToF2(f2);

        context.commitChanges();

        int id = joinTable.getInt("ID");
        assertTrue(id > 0);
View Full Code Here


        DbEntity joinTableEntity = context.getEntityResolver().getDbEntity(
                joinTable.getTableName());
        DbAttribute pkAttribute = (DbAttribute) joinTableEntity.getAttribute("ID");
        Number pk = (Number) adapter.getPkGenerator().generatePk(node, pkAttribute);

        GeneratedF1 f1 = context.newObject(GeneratedF1.class);
        GeneratedF2 f2 = context.newObject(GeneratedF2.class);
        f1.addToF2(f2);

        context.commitChanges();

        int id = joinTable.getInt("ID");
        assertTrue(id > 0);
View Full Code Here

        DbEntity joinTableEntity = context.getEntityResolver().getDbEntity(
                joinTable.getTableName());
        DbAttribute pkAttribute = (DbAttribute) joinTableEntity.getAttribute("ID");
        Number pk = (Number) adapter.getPkGenerator().generatePk(node, pkAttribute);

        GeneratedF1 f1 = context.newObject(GeneratedF1.class);
        GeneratedF2 f2 = context.newObject(GeneratedF2.class);
        f1.addToF2(f2);

        context.commitChanges();

        int id = joinTable.getInt("ID");
        assertTrue(id > 0);
View Full Code Here

TOP

Related Classes of org.apache.cayenne.testdo.testmap.GeneratedF1

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.