Hi,
I have a one-to-many relationship when saving a form and a grid, the form contains 'ONE', and the grid expresses the 'MANY' records. Now when i click on the save button, it should save the 'ONE' record, and save the 'MANY' records.
Usually this is done via ORM like Hibernate or iBatis, but i m trying not to implement any of these frameworks, and use SmartGwt pure SQL datasource instead, how should i save this One-To-Many? Do i save the ONE first, get returned primary key and then save the Many? Will Queue be helpful in this case?
Please help, i m really stuck at this point, need your help urgently! Thanks!
I have a one-to-many relationship when saving a form and a grid, the form contains 'ONE', and the grid expresses the 'MANY' records. Now when i click on the save button, it should save the 'ONE' record, and save the 'MANY' records.
Usually this is done via ORM like Hibernate or iBatis, but i m trying not to implement any of these frameworks, and use SmartGwt pure SQL datasource instead, how should i save this One-To-Many? Do i save the ONE first, get returned primary key and then save the Many? Will Queue be helpful in this case?
Please help, i m really stuck at this point, need your help urgently! Thanks!
Comment