Package server.hibernate

Examples of server.hibernate.Template


    public static void displayTemplates(List resultList){
        System.out.println("Name\t\t Status");
        for(Object o: resultList){
                //Actor actor = (Actor)o;
                //System.out.println(actor.getFirstName() + " " + actor.getLastName());
                Template template = (Template)o;
                System.out.println(template.getName() + "\t" + template.getStatus());
            }
    }
View Full Code Here


        }      
    }
   
    public static List getTemplate(int id){
                      
        Template template =(Template) executeHQLQuery("from Template t where t.name like 'První šablona'").get(0);               
        System.out.println(template.getName() + " " + template.getIdTemplate());
        //System.out.println(template.findAllShifts().size());
        List temp = Test.executeHQLQuery("from Template t where t.idTemplate="+id);
        System.out.println("size: " + temp.size());
        for(Object t : temp){
            Template tl = (Template)t;
            System.out.println("id_template: " + tl.getIdTemplate() + "   name:  " + tl.getName());
           
        }
        return temp;
       
    }
View Full Code Here

TOP

Related Classes of server.hibernate.Template

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.