315316317318319320321322323324325
// test dynamic objects Regal r = new Regal(); r.setValue("store", s1.getId()); r.setValue("name", "regal 1"); r.create(manager); r.setValue("name", "regal 22113221"); r.save(); Regal r2 = (Regal) manager.getObject(Regal.class, r.getValue("id"));