}
}
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;
}