Re: Custom Class Problems

2006-02-18 Thread David Avendasora
On Feb 17, 2006, at 12:24 PM, Ken Anderson wrote: OK David, so it seems like you have a type issue somewhere. Can you please post: 1. The section of Label.plist that deals with the part relationship { destination = Part; isToMany = N; joinSemant

Re: Custom Class Problems

2006-02-17 Thread Ken Anderson
OK David, so it seems like you have a type issue somewhere. Can you please post: 1. The section of Label.plist that deals with the part relationship 2. The code that's calling setPart. Is #2 being done with KeyValue Coding, or by calling the method? Or maybe by addObjectsToBothSidesOfRel

Re: Custom Class Problems

2006-02-16 Thread wojingo
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

Re: Custom Class Problems

2006-02-16 Thread David Avendasora
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"); } publ

Re: Custom Class Problems

2006-02-16 Thread David Avendasora
Is there anyone out there with any ideas on this one? If I have just the one custom class everything works fine. It doesn't matter if I use EOGenerator or EOModeler to generate the java files. As soon as I add the custom Part class, I can no longer sucessfully call addPart(Part value) in th

Re: Custom Class Problems

2006-02-16 Thread Ken Anderson
David, In general, I find that weird problems warrant a model review - that would be my first task. I would examine the model plist files directly for Label & Part, to make sure that all of the java classes are correct (sometimes you might not be showing an important column in EOModeler)

Custom Class Problems

2006-02-15 Thread David Avendasora
Hi all, I am building a D2JC application and up until now I have been simply using EOGenericRecord and Assistant to build most of the back-end data management functionality. I'm now adding custom classes to handle the business logic. My first custom class (Label) worked just fine on it's