Chuck,
Thanks soo much your clue got me on the right track. Dumb mistake, I had left the destination java file in the wrong package. The model was right, the _Sibling.java was correct but Sibling.java was in completely the wrong location.

I was way too focused on the EOModel and worrying about some strange bug with cheapMutableCopy when it was such a simple bug.

THANKS to all.

At 6:12 PM -0800 12/18/06, Chuck Hill wrote:
The only time I have seen this happen was when either the model was not getting loaded, or the class name in the model did not match the actual class name in Java (package etc. included). Have you cleaned the project after the changes? If it is somehow still picking up the old classes without package names, that could cause this.

Chuck


On Dec 18, 2006, at 6:06 PM, Bob Stuart wrote:

Yes the package name is there for Sibling in EOModeler.
I made a typo in the subject line the record is a com.webobjects.eocontrol.EOGenericRecord instead of the "actual" class it should be.

At 10:03 AM +0100 12/18/06, Alexander Spohr wrote:
did you add the package to the class-name in eomodeler?

before: MyEntity
after: my.package.MyEntity

a bit more info about your model would be great :)

        atze

ps. what is EOGenericObject? i only know of EOEnterpriseObject and EOGenericRecord.

Am 18.12.2006 um 06:41 schrieb Bob Stuart:

After some refactoring classes into packages one of my relationships is now returning an array of EOGenericObject instead of the actual class. Example inspection of one of the objects from the array is

(com.webobjects.eocontrol.EOGenericRecord) {values = {lastName = "Delcore"; entryStamp = 2006-07-26 19:23:24 Etc/GMT; toUpdate = "<com.abc.model.Update fc269b _EOIntegralKeyGlobalID[Update (java.lang.Integer)1010043]>"; firstName = "Derer"; toGender = "<com.abc.model.GenderLU 39f05e _EOIntegralKeyGlobalID[GenderLU (java.lang.Integer)1]>"; age = 6; middleName = <com.webobjects.foundation.NSKeyValueCoding$Null>; }; this = "<com.webobjects.eocontrol.EOGenericRecord 41a196 _EOIntegralKeyGlobalID[Sibling (java.lang.Integer)1014625]>"; }

I was expecting the EOGenericRecord to actually be a "Sibling" entity. I think I have my Model correct. The code used to work before we moved classes around to packages. Any suggestions?
--
Bob Stuart
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/atze%40freeport.de

This email sent to [EMAIL PROTECTED]

Freeport & Soliversum
Alexander Spohr
[EMAIL PROTECTED]
www.freeport.de


--
Bob Stuart
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects


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

This email sent to [email protected]

Reply via email to