Examples of VidalMatter


Examples of beans.directory.vidal.entities.matter.VidalMatter

        }

        Iterator<VidalMatter> list = findEntityList(VidalMatter.class, "key.vidal", vidal).iterator();
        Set<Integer> res = new HashSet<Integer>();
        while (list.hasNext()) {
            VidalMatter matter = list.next();
            res.add(matter.getKey().getMatter());
        }

        return res;
    }
View Full Code Here

Examples of beans.directory.vidal.entities.matter.VidalMatter

            deleteEntityList(VidalMatter.class, f);
        }

        Iterator<Integer> addNew = matters.iterator();
        while(addNew.hasNext()) {
            VidalMatter r = new VidalMatter();
            r.setKey(new VidalMatterPK(vidal, addNew.next()));
            System.out.println("Added new:" + r);
            manager.persist(r);
        }
    }
View Full Code Here

Examples of beans.directory.vidal.entities.matter.VidalMatter

            if (vidalID == null){
                throw new EJBException("Неизвестное лекарство : " + vidal);
            } else if (matterID == null) {
                throw new EJBException("Неизвестное активное вещество : " + matter);
            } else {
                VidalMatter r = new VidalMatter();
                r.setKey(new VidalMatterPK(vidalID, matterID));
                //System.out.println("Added new:" + r);
                manager.persist(r);
                //manager.flush();
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.