Re: Am I using EOUtilities.createAndInsertInstance() correctly?
Re: Am I using EOUtilities.createAndInsertInstance() correctly?
- Subject: Re: Am I using EOUtilities.createAndInsertInstance() correctly?
- From: Christian Pekeler <email@hidden>
- Date: Mon, 21 Mar 2005 11:14:51 -0700
I'm getting a class cast exception when I call this method like this:
MyObject mo = (MyObject) EOUtilities.createAndInsertInstance(myEC,
"MyObject");
Did you set the class for the MyObject entity to MyObject in your
EOModel?
If you did, check what you're actually getting
System.out.println(EOUtilities.createAndInsertInstance(myEC,
"MyObject").getClass().getName())
Christian
_______________________________________________
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