Re: Tutorial
Re: Tutorial
- Subject: Re: Tutorial
- From: David LeBer <email@hidden>
- Date: Wed, 12 Mar 2008 17:21:45 -0400
On 12-Mar-08, at 4:46 PM, Gustavo Pizano wrote:
Hello guys.
Well, finally after "solving" ( i dunno yet if its gonna worl the
solution or what) the problem with the "execute SQL" Im going trough
the tutorial, IO read I should use the Veogen due that im under
leopard. so I did what the wiki says
http://wiki.objectstyle.org/confluence/display/WOL/Velocity+EOGenerator+(Veogen)
no problem there.
so comparing the sample code I downloaded from the site where the
tutorial resides and with the code generated (DisplayBoard.java and
_DisplayBoard.java) there are some diferences, i.e the constructor
its missing, I don't have any issue in putting just super();, but Im
wondering if I will have some p[roblems in the future...
Veogen templates do the right thing. Don't worry about the missing
constructor, do not added it, you will (and should) never call it
directly.
When creating a new DisplayBoard you'll see in the code for the
tutorial that Janine uses:
DisplayBoard displayBoard =
(DisplayBoard)EOUtilities.createAndInsertInstance(session
().defaultEditingContext(), "DisplayBoard");
This is such a common line of code that the Veogen templates generate
factories that do that for you.
So you can call:
DisplayBoard displayBoard =
DisplayBoard.newDisplayBoard(session().defaultEditingContext());
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
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
References: | |
| >Tutorial (From: Gustavo Pizano <email@hidden>) |