You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jinyoung Jang edited this page Oct 15, 2015
·
1 revision
oai.Customer loaiCustomer = new oai.Customer(); // TODO Initialize the properties of the persistent object here, the following properties must be initialized before saving : orders
loaiCustomer.setFirstName("jjy");
loaiCustomer.setOrders(new ArrayList());
oai.Order loaiOrder = new oai.Order(); // TODO Initialize the properties of the persistent object here, the following properties must be initialized before saving : qty
// oai.InsurancePersistentManager.instance().getSession().save(loaiOrder);
loaiOrder.setQty(1);
loaiOrder.setItem("BMW");
loaiCustomer.getOrders().add(loaiOrder);
oai.InsurancePersistentManager.instance().getSession().save(loaiCustomer);