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+%28Veogen%29
>
> 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
This archive was generated by hypermail 2.0.0 : Wed Mar 12 2008 - 17:22:58 EDT