RE: XCode beginner needs help -- why does the app not recognize myenterprise object?
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