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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to