posted 16 years ago
hello guys,
Am back again with another problem. Say, I have 2 tables A and B with a one-to-many association from A to B. I want to add insert a record into B which involves inserting a Dummy record into A. Can anyone tell me how to go about it? Would I be able to do a cascade save?
i tried adding object B to Object A as a HashSet and then saving A. But it didnt work. The record was inserted in A but the corresponding record was not saved in B.
Some Pointers will be really helpful. Will put across my code and mapping files if needed.
Thanks,