Re: deprecated API
Re: deprecated API
- Subject: Re: deprecated API
- From: Art Isbell <email@hidden>
- Date: Thu, 9 Feb 2006 12:16:07 -1000
On Feb 9, 2006, at 12:03 PM, Chuck Hill wrote:
Let's collect these. I've added one more:
http://www.wodev.com/cgi-bin/WebObjects/WODev.woa//wa/Main?
wikiPage=WebObjectsBestPractices
The added WO Best Practice:
Rather than use
MyEO eo = new MyEO();
ec.insertObject(eo);
Prefer this form:
MyEO eo = (MyEO) EOUtilities.createAndInsertInstance(ec, "MyEO");
If this is good:
MyNewPage nextPage = (MyNewPage)pageWithName(MyNewPage.class.getName
());
then why not this?
MyEO eo = (MyEO) EOUtilities.createAndInsertInstance(ec,
MyEO.class.getName());
:-)
Aloha,
Art
_______________________________________________
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