Ejemplo n.º 1
0
 public Host getHostById(long id) {
   return (Host) _pm.get(Host.class, id);
 }
Ejemplo n.º 2
0
 public void setHostCapability(long hid, int engineNum, double capability) {
   Host host = (Host) _pm.get(Host.class, hid);
   host.setCapability(engineNum, capability);
   _pm.exec(host, HibernateEngine.DB_UPDATE);
 }
 public TestPlanEntity getTestPlanByID(long id) {
   return (TestPlanEntity) _pm.get(TestPlanEntity.class, id);
 }