Package org.jsf2jpa.entities

Examples of org.jsf2jpa.entities.Hierarhy


        /*
         * First level
         */
        for (int i=0;i<5;i++) {
            Hierarhy hier = new Hierarhy();
            hier.setName(i + " leaf");
            addAttributes (hier);
            /*
             * Second level
             */
            for (int j=0;j<5;j++) {
                Hierarhy hier1 = new Hierarhy();
                hier1.setName(i + "." + j + " leaf");
                hier1.setParent(hier);
                hier.getChildren().add(hier1);
                addAttributes (hier1);
               
                for (int k=0;k<5;k++) {
                    Hierarhy hier2 = new Hierarhy();
                    hier2.setName(i + "." + j + "." + k + " leaf");
                    hier2.setParent(hier1);
                    hier1.getChildren().add(hier2);
                    addAttributes (hier2);
                }
            }
           
View Full Code Here

TOP

Related Classes of org.jsf2jpa.entities.Hierarhy

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.