Hi Michael,
Try putting an "@Override" flag on the line before this method. If you
really aren't overriding it, this will cause the method to throw a
compiler error.
If it doesn't complain, it means that the code calling this method is
calling the _Invoice version of the method directly somehow.
When you created the instance you are now trying to update, did you
insert it into an editing context?
Dave
On Sep 16, 2008, at 7:23 PM, Michael Kondratov wrote:
I am having the strangest problem. I am unable to override set
relationship methods.
Example:
public void setInvoiceStatusRelationship(InvoiceStatus value) {
System.out.println("updating invoice status");
if(value != invoiceStatus()) {
System.out.println("updating invoice status date");
this.setInvoiceStatusDate(new NSTimestamp());
}
super.setInvoiceStatusRelationship(value);
}
But it is never called. Instead a method
setInvoiceStatusRelationship(value) from _Invoice (EOGenerator file)
is being called.
Any advise?
Michael Kondratov
Aspire Auctions, Inc.
www.aspireauctions.com
216-231-5515
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]