Package org.apache.jackrabbit.ocm.testmodel.uuid

Examples of org.apache.jackrabbit.ocm.testmodel.uuid.A


        ocm.getSession().getRootNode().addNode("test");
        ocm.getSession().getRootNode().addNode("references");
        ocm.getSession().save();

        A firstA = new A();
        A secondA = new A();
        A thirdA = new A();

        firstA.setPath("/references/a1");
        secondA.setPath("/references/a2");
        thirdA.setPath("/references/a3");

        firstA.setStringData("the first");
        secondA.setStringData("the second");
        thirdA.setStringData("the third");

        ocm.insert(firstA);
        ocm.insert(secondA);
        ocm.insert(thirdA);

        assertNotNull(firstA.getPath());
        assertNotNull(secondA.getPath());
        assertNotNull(thirdA.getPath());

        firstA = (A) ocm.getObject(firstA.getPath());
        secondA = (A) ocm.getObject(secondA.getPath());
        thirdA = (A) ocm.getObject(thirdA.getPath());

        assertNotNull(firstA.getUuid());
        assertNotNull(secondA.getUuid());
        assertNotNull(thirdA.getUuid());


        Main main = new Main();
        main.setPath("/test/1");
        main.getReferenceMap().put("keyFirst", firstA);
View Full Code Here


        ocm.getSession().getRootNode().addNode("test");
        ocm.getSession().getRootNode().addNode("references");
        ocm.getSession().save();

        A firstA = new A();
        A secondA = new A();
        A thirdA = new A();

        firstA.setPath("/references/a1");
        secondA.setPath("/references/a2");
        thirdA.setPath("/references/a3");

        firstA.setStringData("the first");
        secondA.setStringData("the second");
        thirdA.setStringData("the third");

        ocm.insert(firstA);
        ocm.insert(secondA);
        ocm.insert(thirdA);

        assertNotNull(firstA.getPath());
        assertNotNull(secondA.getPath());
        assertNotNull(thirdA.getPath());

        firstA = (A) ocm.getObject(firstA.getPath());
        secondA = (A) ocm.getObject(secondA.getPath());
        thirdA = (A) ocm.getObject(thirdA.getPath());

        assertNotNull(firstA.getUuid());
        assertNotNull(secondA.getUuid());
        assertNotNull(thirdA.getUuid());


        Main main = new Main();
        main.setPath("/test/1");
        main.getReferenceMap().put("keyFirst", firstA);
View Full Code Here

        ocm.getSession().getRootNode().addNode("test");
        ocm.getSession().getRootNode().addNode("references");
        ocm.getSession().save();

        A firstA = new A();
        A secondA = new A();
        A thirdA = new A();

        firstA.setPath("/references/a1");
        secondA.setPath("/references/a2");
        thirdA.setPath("/references/a3");

        firstA.setStringData("the first");
        secondA.setStringData("the second");
        thirdA.setStringData("the third");

        ocm.insert(firstA);
        ocm.insert(secondA);
        ocm.insert(thirdA);

        assertNotNull(firstA.getPath());
        assertNotNull(secondA.getPath());
        assertNotNull(thirdA.getPath());

        firstA = (A) ocm.getObject(firstA.getPath());
        secondA = (A) ocm.getObject(secondA.getPath());
        thirdA = (A) ocm.getObject(thirdA.getPath());

        assertNotNull(firstA.getUuid());
        assertNotNull(secondA.getUuid());
        assertNotNull(thirdA.getUuid());


        Main main = new Main();
        main.setPath("/test/1");
        main.getReferenceMap().put("keyFirst", firstA);
View Full Code Here

        ocm.getSession().getRootNode().addNode("test");
        ocm.getSession().getRootNode().addNode("references");
        ocm.getSession().save();

        A firstA = new A();
        A secondA = new A();
        A thirdA = new A();
        A fourthA = new A();

        firstA.setPath("/references/a1");
        secondA.setPath("/references/a2");
        thirdA.setPath("/references/a3");
        fourthA.setPath("/references/a4");

        firstA.setStringData("the first");
        secondA.setStringData("the second");
        thirdA.setStringData("the third");

        ocm.insert(firstA);
        ocm.insert(secondA);
        ocm.insert(thirdA);
        ocm.insert(fourthA);

        assertNotNull(firstA.getPath());
        assertNotNull(secondA.getPath());
        assertNotNull(thirdA.getPath());
        assertNotNull(fourthA.getPath());

        firstA = (A) ocm.getObject(firstA.getPath());
        secondA = (A) ocm.getObject(secondA.getPath());
        thirdA = (A) ocm.getObject(thirdA.getPath());
        fourthA = (A) ocm.getObject(fourthA.getPath());

        assertNotNull(firstA.getUuid());
        assertNotNull(secondA.getUuid());
        assertNotNull(thirdA.getUuid());
        assertNotNull(fourthA.getUuid());


        Main main = new Main();
        main.setPath("/test/1");
        main.getReferenceMap().put("keyFirst", firstA);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.ocm.testmodel.uuid.A

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.