• 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: Velocity EOGenerator create package problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Velocity EOGenerator create package problem


  • Subject: RE: Velocity EOGenerator create package problem
  • From: "Ren, Kevin" <email@hidden>
  • Date: Thu, 20 Dec 2007 13:46:44 +1300
  • Thread-topic: Velocity EOGenerator create package problem

OK, i got it. i put the whole name in the eomodel, like Tobias said e.g.: recipe.eo.Ingredient instead of just Ingredient.
All generated in recipe/eo dir and with package name.
but it's bit painful if there are more table/classes.
 
is it possible to setup packagename argument in the EOGenerator command or turn on create package functionality?
 
i did further, tried the new feature, setup "superclass package" field to base and generated two folders, but the same package name "package recipe.eo".
got problem because from recipe.eo package could not access recipe.eo.base package, (couldnot see _Recipe class) 
AND in recipe.eo.base class the package name is  "package recipe.eo" the same as recipe.eo class from eomodel.
 
What i did wrong?
 
thanks
 
 
kevin


From: webobjects-dev-bounces+kevin.ren=email@hidden [mailto:webobjects-dev-bounces+kevin.ren=email@hidden] On Behalf Of Mike Schrag
Sent: Thursday, 20 December 2007 12:31 p.m.
To: WebObjects (Group)
Subject: Re: Velocity EOGenerator create package problem

Velocity EOGenerator totally ignores the -createPackage flag -- it always creates packages (because it's the right thing to do).  It determines the package name to use from the class name you set in your EOModel file.  The "superclass package" field is a new feature that lets you specify, for instance "base", which will put your _Files in the.package.of.your.entity.base._YourEntity (while the non underscore file goes to the.package.of.your.entity.YourEntity).  Long story short, you probably want superclass package blank and you need to specify your package in the Class Name field of your Entity.

ms

On Dec 19, 2007, at 6:23 PM, Ren, Kevin wrote:


Hi,

This is my .eogen content:

-destination Source/recipe/eo -java -javaTemplate _Entity.java -model recipe.eomodeld -subclassDestination Source/recipe/eo -subclassTemplates Entity.java -templatedir Templates -verbose

Run EOGeberate command, all good created all java classes for me in recipe/eo dir, but without any package code on the top.

I selected create package option, but didn't put anything in "Superclass package".

Is this bug in Velgen not pick up package name in the code?

I tried different way to setup "superclass package" to recipe.eo, still couldn't get package detail on the top of generated java class.


Thanks


Kevin


 

"This communication is confidential and may contain privileged and/or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference."

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

 

"This communication is confidential and may contain privileged and/or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference."

 _______________________________________________
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: Velocity EOGenerator create package problem
      • From: Mike Schrag <email@hidden>
    • Re: Velocity EOGenerator create package problem
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Legacy database integration and mysql autoinc fields.
  • Next by Date: Re: Velocity EOGenerator create package problem
  • Previous by thread: Re: Velocity EOGenerator create package problem
  • Next by thread: Re: Velocity EOGenerator create package problem
  • Index(es):
    • Date
    • Thread