• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tutorial
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tutorial


  • Subject: Re: Tutorial
  • From: David LeBer <email@hidden>
  • Date: Wed, 12 Mar 2008 17:34:11 -0400


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+(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
  • Follow-Ups:
    • Re: Tutorial
      • From: Gustavo Pizano <email@hidden>
References: 
 >Tutorial (From: Gustavo Pizano <email@hidden>)
 >Re: Tutorial (From: David LeBer <email@hidden>)
 >Re: Tutorial (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: Tutorial
  • Next by Date: Re: Tutorial
  • Previous by thread: Re: Tutorial
  • Next by thread: Re: Tutorial
  • Index(es):
    • Date
    • Thread