I've defined two objects and an association of oneToOne uni-directional. I've set the saveAutomaticaly and retriveAutomaticaly and deleteAutomaticaly to true.
I'm able to save and object and its associated object. But, I can retrive the object but not its association, and i can delete the object but its association is not deleted.
I've checked my definitions and compared them to the example and it seems they are fine.
Is there any problem?
Dan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are actually another 5 or so calls to Activator.CreateInstance() all of which needed a similar change.
I've made the changes and you should be able to get the latest updates from CVS shortly (use the ViewCVS web interface to see the latest files and you will need both the CPersistentObject and CPersistenceBroker files.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-05-27
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
I've defined two objects and an association of oneToOne uni-directional. I've set the saveAutomaticaly and retriveAutomaticaly and deleteAutomaticaly to true.
I'm able to save and object and its associated object. But, I can retrive the object but not its association, and i can delete the object but its association is not deleted.
I've checked my definitions and compared them to the example and it seems they are fine.
Is there any problem?
Dan
It depends. There was a bug I ran across today where associations of a superclass were not processed (it's fixed in CVS now).
If you are retrieving the child class, but trying to get the parent associations to be processed then you will need to get the latest code from CVS.
If you still have an issue, post a bug report with your XML and I'll check it out for you.
I've posted a bug report, no. 957447.
Thanks,
Dan
Hi Richard,
Thanks for the code.
It runs OK now.
Will looking in the code, in CPersistentBroker, I notice that I've missed another line with Activator.CreateInstance(...) in 514.
Sorry.
Thanks,
Dan
P.S.
Greate application, I like very much.
Keep up the good work.
Hi Dan,
There are actually another 5 or so calls to Activator.CreateInstance() all of which needed a similar change.
I've made the changes and you should be able to get the latest updates from CVS shortly (use the ViewCVS web interface to see the latest files and you will need both the CPersistentObject and CPersistenceBroker files.)
Thanks.