refresh an enterprise object
refresh an enterprise object
- Subject: refresh an enterprise object
- From: Goh Keng Boon <email@hidden>
- Date: Mon, 21 Jun 2004 22:09:16 +0800
Hi,
I got this custom enterprise object called "Product", there is a
relationship with another table called "Status", the relationship
called "ps"
if I do a aProduct.setStatus(new Double(1)) and ec.saveChanges(), the
"1" can be saved into my database, however when i want to travel
through the relationship, i got difficulty, as it is not defined.
For example : aProduct.ps().statusdisplay()
This happened because i'm not using
"addObjectToBothSidesOfRelationshipWithKey", although data is inserted
but the relationship
is not "declared" at this time. How can i refresh my aProduct (without
a fetch spec) so that I can travel through the relationship?
Thanks.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.