Package org.apache.cayenne.configuration

Examples of org.apache.cayenne.configuration.DataMapLoader


  public void testReadOnly_Flattened1_1__N_1() {

    // check common vertical inheritance relationships

    DataMapLoader loader = runtime.getInjector().getInstance(
        DataMapLoader.class);
    URL url = getClass().getClassLoader().getResource(
        "inheritance-vertical.map.xml");
    DataMap dataMap = loader.load(new URLResource(url));
    EntityResolver resolver = new EntityResolver(
        Collections.singleton(dataMap));

    ObjEntity iv2Sub1 = resolver.getObjEntity(Iv2Sub1.class);
    ObjRelationship x = (ObjRelationship) iv2Sub1
View Full Code Here


  public void testReadOnly_Flattened1_1__N_1() {

    // check common vertical inheritance relationships

    DataMapLoader loader = runtime.getInjector().getInstance(
        DataMapLoader.class);
    URL url = getClass().getClassLoader().getResource(
        "inheritance-vertical.map.xml");
    DataMap dataMap = loader.load(new URLResource(url));
    EntityResolver resolver = new EntityResolver(
        Collections.singleton(dataMap));

    ObjEntity iv2Sub1 = resolver.lookupObjEntity(Iv2Sub1.class);
    ObjRelationship x = (ObjRelationship) iv2Sub1
View Full Code Here

TOP

Related Classes of org.apache.cayenne.configuration.DataMapLoader

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.