• 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: Chuck Hill <email@hidden>
  • Date: Wed, 19 Dec 2007 16:54:21 -0800


On Dec 19, 2007, at 4:46 PM, Ren, Kevin wrote:

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.

For EOF, it really should be in the model.


Chuck


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:
40mdimension.com


This email sent to email@hidden


"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:
40global-village.net


This email sent to email@hidden

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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: 
 >RE: Velocity EOGenerator create package problem (From: "Ren, Kevin" <email@hidden>)

  • Prev by Date: RE: Velocity EOGenerator create package problem
  • Next by Date: Re: Migration code to Eclips/Wolips question
  • Previous by thread: RE: Velocity EOGenerator create package problem
  • Next by thread: Re: Velocity EOGenerator create package problem
  • Index(es):
    • Date
    • Thread