• 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: XCode beginner needs help -- why does the app not recognize myenterprise object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: XCode beginner needs help -- why does the app not recognize myenterprise object?


  • Subject: RE: XCode beginner needs help -- why does the app not recognize myenterprise object?
  • From: Andy Beier <email@hidden>
  • Date: Mon, 18 Oct 2004 10:33:25 -0700
  • Thread-topic: XCode beginner needs help -- why does the app not recognize myenterprise object?

Is lastName a primary key or part of a compound primary key? In your
model make sure that there is a diamond being displayed in the lastName
row. If not click once in the diamond column and one will appear. Then
recreate your Author class from the EOModeler.

Items without the diamond are not accessible through your EOs even if
they have methods in your java class.

Cheers,
Andy

-----Original Message-----
From: webobjects-dev-bounces+abeier=email@hidden
[mailto:webobjects-dev-bounces+abeier=email@hidden] On Behalf
Of Gonzalo Moreno
Sent: Monday, October 18, 2004 9:19 AM
To: email@hidden
Subject: XCode beginner needs help -- why does the app not recognize
myenterprise object?

Hi,

I'm building a sample Authors app as described in the
WebObjects documentation, and I'm having trouble
getting it to work. It compiles correctly, but
apparently doesn't deploy correctly.

Using EOModeler, I created an Author EO that mirrors
an AUTHOR table in the db. I added the Java class
created by EOModeler to my XCode project, making sure
its target was 'application server'.

I get the following stack trace:

Application:
Authors

Error:
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException:
valueForKey(): lookup of unknown key: 'lastName'. This
class does not have an instance variable of the name
lastName or _lastName, nor a method of the name
lastName, _lastName, getLastName, or _getLastName

Reason:
<com.webobjects.eocontrol.EOGenericRecord 0x1ef69>
valueForKey(): lookup of unknown key: 'lastName'. This
class does not have an instance variable of the name
lastName or _lastName, nor a method of the name
lastName, _lastName, getLastName, or _getLastName


Even though Author subclasses EOGenericRecord, it's as
if the Author class isn't even taken into account ....
any ideas ??

thanks in advance,
Gonzalo.





_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
 _______________________________________________
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

 _______________________________________________
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

  • Prev by Date: Re: Caching reference data
  • Next by Date: Re: Deployment on Win2003 server
  • Previous by thread: Re: XCode beginner needs help -- why does the app not recognize my enterprise object?
  • Next by thread: Re: Deployment on Win2003 server
  • Index(es):
    • Date
    • Thread