Tuesday, November 4, 2003
Okay, I rebooted into Jaguar and checked my project under the "old" WO version...it was fine.

So, is it a bug? Or a feature?
4:13:28 PM  talkback:[]  #  

Finally made the switch over to Panther (yes, I know the link points to OS X). I did a clean install and wiped my drive. I now have two partitions, one for beta-testing OS's and just mucking around.

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;

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; }

On the nextPage the user is able to type in a 'comment' and save it.

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:[]  #