@Factory("publication33List")
 public void initPublication33List() {
   log.info("initPublication33List");
   publication33List = new HashMap<String, String>();
   for (Object o : em.createQuery("from " + "Publication").getResultList()) {
     Publication p = (Publication) o;
     publication33List.put(p.getName(), p.getId().toString());
   }
 }
Пример #2
0
 @Factory("category9List")
 public void initCategory9List() {
   log.info("initCategory9List");
   category9List = new HashMap<String, String>();
   for (Object o : em.createQuery("from " + "Category").getResultList()) {
     Category p = (Category) o;
     category9List.put(p.getName(), p.getId().toString());
   }
 }