Re: Custom Class Problems
Re: Custom Class Problems
- Subject: Re: Custom Class Problems
- From: wojingo <email@hidden>
- Date: Fri, 17 Feb 2006 17:13:33 +1030
David Avendasora wrote:
I've dug through the .plist files and everything looks right.
Here's the code that is generated (I've added a println() to it so I
can see when it executes:
public com.bestmaid.erp.client.Part part() {
return (com.bestmaid.erp.client.Part)storedValueForKey("part");
}
public void setPart(com.bestmaid.erp.client.Part aValue) {
System.out.println("setPart");
takeStoredValueForKey(aValue, "part");
}
I get *nothing* in the console.
If I simply change the class from com.bestmaid.erp.client.Part to
EOGenericRecord below, it works.
public EOGenericRecord part() {
return (EOGenericRecord)storedValueForKey("part");
}
public void setPart(EOGenericRecord aValue) {
System.out.println("setPart");
takeStoredValueForKey(aValue, "part");
}
The Part is correctly set, and I get "setPart" in the console.
I am a newbie. Is there something wrong with the
"com.bestmaid.erp.client.Part" ?
Hi,
Check your models' className for the Part entity.
Its probably set to EOGenericRecord rather than
com.bestmaid.erp.client.Part
But then if that was the case, the method should have been generated
using EOGenericRecord as the method argument.
regards,
- shaun
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden