Menu

Get object and its association does not work

Anonymous
2004-05-20
2004-05-27
  • Anonymous

    Anonymous - 2004-05-20

    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

     
    • Richard Banks

      Richard Banks - 2004-05-20

      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.

       
    • Anonymous

      Anonymous - 2004-05-20

      I've posted a bug report, no. 957447.

      Thanks,

      Dan

       
    • Anonymous

      Anonymous - 2004-05-24

      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.

       
    • Richard Banks

      Richard Banks - 2004-05-25

      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.)

       
    • Anonymous

      Anonymous - 2004-05-27

      Thanks.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.