So, I deployed a new version of my app today which was based on Wonder 7. 
Apparently, I had a version of Wonder 7 that was more than 25 days old because 
I hit a fun bug in ERXGenericRecord.createUuidPrimaryKey. This bug has 
definitely been fixed. But I was surprised by a couple things:

1. The new (and very cool) UUID stuff in ERXGenericRecord is NOT opt-in. :-)

But even a greater concern is -
2. In my case, I was triggering the bug because prototypeName() on my primary 
key attribute is returning null even though the attribute is assigned a 
prototype in the model.

As a sanity check I printed out prototypeName() for every EOAttribute for the 
entity. They are all null even though in modeler the prototypes are all set and 
have been for a very long time. I also checked the plist file for the entity in 
question and it clearly contains all prototype names for every attribute of the 
entity.

Next, I printed out the EOAttribute.toString() for my entity’s primary key and 
got the following. The prototypeName is properly reflected in the userInfo 
dictionary - but otherwise not listed.

prototype name in ERXGenericRecord:null
att in createUuid:<EOAttribute timeEntryId
        name : 'timeEntryId'
        columnName : 'time_entry_id'
        className : 'java.lang.Number'
        externalType : 'int'
        userInfo : '{prototypeName = "id"; }'
        internalInfo : '{_nameInObjectStore = "id"; }'
        valueType : 'i'
        serverTimeZone : 'America/Los_Angeles'
>

I haven’t had a chance to dig around more today but I’m interested to see what 
others might be experiencing.

Tim
UCLA GSE&IS
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to