- BookSection section1 = BookSection.NewInstance(book1, null, "SecTitle", "22-33");\r
- BookSection section2 = BookSection.NewInstance(book2, null, "SecTitle", "22-33");\r
- BookSection section3 = BookSection.NewInstance(book1, null, "SecTitle", "22-33");\r
- cdmGenericDao.saveOrUpdate(section1);\r
- cdmGenericDao.saveOrUpdate(section2);\r
- cdmGenericDao.saveOrUpdate(section3);\r
+ IBookSection section1 = refFactory.newBookSection();\r
+ section1.setInBook(book1);\r
+ section1.setTitle("SecTitle");\r
+ section1.setPages("22-33");\r
+ IBookSection section2 = refFactory.newBookSection();\r
+ section2.setInBook(book2);\r
+ section2.setTitle("SecTitle");\r
+ section2.setPages("22-33");\r
+ IBookSection section3 = refFactory.newBookSection();\r
+ section3.setInBook(book1);\r
+ section3.setTitle("SecTitle");\r
+ section3.setPages("22-33");\r
+ cdmGenericDao.saveOrUpdate((ReferenceBase)section1);\r
+ cdmGenericDao.saveOrUpdate((ReferenceBase)section2);\r
+ cdmGenericDao.saveOrUpdate((ReferenceBase)section3);\r