• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom Class Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Custom Class Problems (From: David Avendasora <email@hidden>)
 >Re: Custom Class Problems (From: David Avendasora <email@hidden>)
 >Re: Custom Class Problems (From: Ken Anderson <email@hidden>)
 >Re: Custom Class Problems (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: Custom Class Problems
  • Next by Date: Re: WebObjects 5.3.1 Redirect bug?
  • Previous by thread: Re: Custom Class Problems
  • Next by thread: Re: Custom Class Problems
  • Index(es):
    • Date
    • Thread