So, is it a bug? Or a feature?
4:13:28 PM talkback:[] #
After a couple of days installing everything, which involved traking down install disks, I'm up and running. Most everything "just works." Gotta love it.
The major issue I'm having right now is working with XCode and WebObjects. With the WO 5.2.2 release a few methods have been deprecated, so I'm in the process of trimming those methods out of our projects.
My current issue is with a to-one relationship in our database. What I recall working under Jaguar/5.2 isn't working under Panther/5.2.2. Basically, I have the following: Project -->> Comment
For some reason the foreign key ('projectID') isn't being used during the SQL generation. I wind up getting an exception because of a NULL value (which is correct, since a NULL projectID would be bad...the comment would be for nothing!).
I have it ('projectID') turned off as an attribute (i.e. no diamond) because it's a key. The following code is used to add a Comment to a Project:
public WOComponent addComment() { OTCComment comment;On the nextPage the user is able to type in a 'comment' and save it.comment = (OTCComment) EOUtilities.createAndInsertInstance(editingContext(), "OTCComment"); comment.setCreatedBy((OTCContact) currentContact());
aProject.addToComments(comment); // why isn't this working? CreateComment nextPage = (CreateComment) pageWithName("CreateComment"); nextPage.setNextPage((OTCComponent) this.context().page()); nextPage.setAComment(comment); nextPage.setCurrentContact(currentContact()); return nextPage; }
I am assuming I can simply add the back-pointing relationship from Comment --> Project to fix this problem. I don't recall this problem prior to Panther/XCode/5.2.2. At some point I'm going to boot into my backup to check.
Personally, I think it's a bug...will I eat crow? I'll know soon enough. I'm off to boot back into Jaguar.
3:28:22 PM talkback:[] #
Copyright 2005 Josh Paul
Theme Design by Bryan Bell



