• 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: WOLips and EOGenerator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOLips and EOGenerator


  • Subject: Re: WOLips and EOGenerator
  • From: Dustin Withers <email@hidden>
  • Date: Sun, 27 Aug 2006 16:06:14 -0500

This was something Mike CC'd the WOProject list on I believe:

I'm CC'ing this to the list also, and I can put it up on the Wiki maybe later tonight (in the middle of "real work" things at the moment):

Yeah, this is a process that isn't well-documented. We depend on EOGenerator for Java class file generation. It's a much more powerful system for generating Java classes than the traditional mechanism. I wrote up some information in the Wikibook a while ago ( http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ EOGenerator ) on EOGenerator independent of Entity Modeler.

Inside of WOLips, you will then need to go to Window=>Preferences=>WOlips=>EOGenerator and setup the folders to point to the correct location. I'm actually contemplating whether there is some way to ship EOGenerator INSIDE of wolips, but it's a native binary and thus presents some complications.

Once it's configured, you can create a new EOGenerator file that specifies things like dependent models, etc, that are used to generate your java files. You can manually create the EOGenerator file in Eclipse with the New EOGenerator File Wizard, or you can right-click on an EOModel and Create EOGenerator File from EOModel. This will "figure out" most of the things you need.

You can either right-click=>WOLips Tools=>EOGenerate ... on that .eogen file that is created, or you can turn on Automatic EOGeneration at build time (Window=>Preferences=>WOlips=>Build(i think?)=>Auto-EOGenerate). What this does is watch for any time files inside of your eomodel change, and it automatically finds eogen files dependent on that model (either direct reference or as ref- models) and kicks of eogeneration of java files from those models (which in turn auto-incremental-builds in Eclipse).

Hopefully this clarifies things a little. The setup is obviously a little more complicated than old EOModeler, but the payoff is totally worth it. The generated code is overall MUCH nicer to work with.

ms

On Aug 21, 2006, at 11:45 AM, Timothy Kompanchenko wrote:


Greetings Michael,

It was great to see your part of the presentation for the Entity Modeler during the related WWDC06 session. It was difficult to formulate all of the questions while chatting with you after the session. During the session it became very clear that we need to switch from Xcode/WebObjects Builders/EOModeler to Eclipse/WOLips/ Entity Modeler for obvious reasons. While SQL generation seems to be pretty straight-forward, I am not sure about the best way to generate java classes - I saw you do it during the session, but until I get the sessions DVD it will be difficult to remember. I am having difficulties finding appropriate resources online. Would you be able to send me a couple of links to steer me in the right direction? Maybe a short "how to generate java classes" tip.

Thanks for taking a little bit of your time for this, considering your very busy schedule.

Timothy Kompanchenko
email@hidden
904.315.6620

On Aug 27, 2006, at 1:40 PM, Wolfram Stebel wrote:

Hi all,

I also try to make the great EOGenerator running with WOLips/ Eclipse 3.2.
Are there any tips already posted or might somenone of you tell how to?
I know there is the button in the WOLips perspective and i can add my
EOModel, but where should the .eogen file be located, when is it
executed...?
Questions over questions :-)


Regards

Wolfram


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40griffintechnology.com


This email sent to email@hidden

_______________________________________________ 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: 
 >WOLips and EOGenerator (From: Wolfram Stebel <email@hidden>)

  • Prev by Date: Relationships and database constraints
  • Next by Date: Re: Relationships and database constraints
  • Previous by thread: WOLips and EOGenerator
  • Next by thread: Relationships and database constraints
  • Index(es):
    • Date
    • Thread