-
Notifications
You must be signed in to change notification settings - Fork 4
ORM sample code
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);