/** * HyperVisor Factory construction * * @throws PersistenceException */ private HypervisorHB createHypervisor(HypervisorType hType) throws PersistenceException { // Crudable<HypervisorHB, Integer> daoHyper = // new GenericHibernateDAO<HypervisorHB, Integer>(HypervisorHB.class); HypervisorHB hyp = new HypervisorHB(); hyp.setType(hType); hyp.setIp("test"); hyp.setIpService("test"); hyp.setPort(0); // XXX hyp.setPhysicalMachine(physicalMachine); // daoHyper.makePersistent(hyp); return hyp; }