On 12-Mar-08, at 5:27 PM, Gustavo Pizano wrote:
> LOL
> Actaully im having problems with that code line Im getting this
>
> Application: nhlpm
> Error: java.lang.IllegalArgumentException exception
> Reason:
> java.lang.IllegalArgumentException: Could not find
> EOClassDescription for entity name 'DisplayBoard' !
>
>
> and the traceTrak shows the error in that line.. so what to do?
You google the error. (Use your google foo young warrior!)
<http://lists.apple.com/archives/Webobjects-dev/2007/Dec/msg00688.html>
And if that doesn't help you post the snippet of code that is causing
the error and the full stack trace.
>
> Gus
>
> On Mar 12, 2008, at 4:21 PM, David LeBer wrote:
>
>
>>
>> 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:35:14 EDT