Re: help needed because of 5.3
Re: help needed because of 5.3
- Subject: Re: help needed because of 5.3
- From: Kieran Kelleher <email@hidden>
- Date: Fri, 5 Aug 2005 10:40:39 -0400
You cannot have primitive attributes in EOEnterpriseObjects.
Here is some very useful info......
http://developer.apple.com/documentation/WebObjects/UsingEOModeler/
index.html
http://developer.apple.com/documentation/WebObjects/Enterprise_Objects/
index.html
http://developer.apple.com/documentation/WebObjects/Web_Applications/
index.html
http://java.sun.com/docs/books/tutorial/java/TOC.html#nutsandbolts
http://developer.apple.com/documentation/WebObjects/JavaForWODev/
JavaForWODev.pdf
WebObjects on its own has a very steep learning curve, never mind the
additional steepness of learning Java at the same time. But as one
Apple WebObjects engineer said, "a steep learning curve is good,
because you are going to learn a lot of stuff in a short period of
time!"
To make progress fast, get a bunch of Java/WebObjects books (Murach,
Josh Marker, Practical WebObjects) and print/bind hardcopies of the
Apple PDF documentation and for at least a few months follow the ABAB
(Always Bring A Book) principle when going anywhere so you can learn
while waiting at the doctor's office, waiting in the cafeteria line for
lunch, eating lunch, before going to sleep at night, while watching TV
with loved ones (they watch TV while you read about Java/WebObjects),
while eating breakfast, while taking a break from programming, while
waiting outside Macy's in the mall while your spouse/wife/girlfriend
runs in "for a minute to get just one thing" (1 minute = 1 hour), while
drinking Guinness in the local Irish Pub (they'll think you are weird,
but that's OK because after a few more Guinness they won't notice you
anymore), etc. etc.
Regards,
-Kieran
________________________________________________________________
Blog: http://webobjects.webhop.org/
On Aug 5, 2005, at 9:41 AM, brian day wrote:
I know I need to learn java better, you are correct there. However in
the same function i call
saveBlob.userName(); which looks like
public String userName() {
return (String)storedValueForKey("userName");
}
and this works perfectly and is the previous line. To me the only
difference is the casting, Sting instead of Number, and the value type
returned from the database,Sting instead of int. So how can userName
be called fine but not resultID? I only call resultID once and only
in this function so this call has to be the wrong one.
thank you for your advice
Brian
On Aug 5, 2005, at 9:24 AM, Kieran Kelleher wrote:
Brian,
That's because you are calling the method from a static method
somewhere else. There is nothing wrong with the method itself.
Brian, you really need to learn java basics .... just get stuck in the
Murach book for a few days and all will become clear. :-)
Regards,
-Kieran
________________________________________________________________
Blog: http://webobjects.webhop.org/
On Aug 5, 2005, at 8:56 AM, brian day wrote:
Hi
I tried your suggestion and replaced what i had with
public Number resultID() {
return (Number)storedValueForKey("resultID");
}
and i got the error:
non-static method resultID() cannot be referenced from a static context
I then made resultID() static, but got the error:
non-static method storedValueForKey(java.lang.String) cannot be
referenced from a static context
any suggestions how to solve this?
thank you for your help so far
Brian
_______________________________________________
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