Velocity EOGenerator: refactor package?
Velocity EOGenerator: refactor package?
- Subject: Velocity EOGenerator: refactor package?
- From: Patrick Robinson <email@hidden>
- Date: Tue, 24 Jun 2008 10:10:51 -0400
This is a bit old, but I assume it's still true:
On Dec 19, 2007, at 8:48 PM, Mike Schrag wrote:
is it possible to setup packagename argument in the EOGenerator
command or turn on create package functionality?
No, because this is really a setting of your EOModel, not just of
the generation of Java files. However, there is a new setting
coming to Entity Modeler that will allow you to define the default
package name for entities (which WILL actually write into the model
file properly). (coming = probably next week)
Is there a way to mass-refactor your entities' classes into a
different package, and (the real problem!) have that change reflected
in the model? I'm dealing with a rather old project where the entity
classes had been in the default package. It took a bit of reading
(old posts) and experimenting to figure out that you can't change the
existing package for all your entity classes by just specifying
something in the eogen file. You apparently have to specify the
"fully qualified" package.class name in each entity. OK, so I did
that, and all is now as it should be. But what do you do if you want
to change the package for your entities' classes?
Did I miss out on the easy and magical way to do this? :-)
- Patrick
_______________________________________________
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