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
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."
|