Re: EOModeler code generation
Re: EOModeler code generation
- Subject: Re: EOModeler code generation
- From: David Avendasora <email@hidden>
- Date: Mon, 20 Feb 2006 06:43:23 +0000
Loren,
I'm assuming you are specifying the class by adding the package to
the beginning of the class name (com.fu.bar.Class) If you use
EOModeler to generate the java classes, then you have to specify at
generation time what directory to put each file in manually. It does
not read the package information, it just ignores it.
I HIGHLY recommend using rubicode's EOGenerator: http://
www.rubicode.com/Software/EOGenerator/ as it has a simple flag (-
packagedirs) that will build and save to the package-directory
hierarchy based on the class name.
You can easily edit the included code-generation templates if you
have different or more advanced needs than the built-in ones. The
readme.rtf that comes with it has a lot of really useful information
and examples in it.
It is also being actively developed. I ran into a bug a couple days
ago and the developers sent me a custom build within a day. There
should be version 1.7 coming out relatively soon that will offer some
bug fixes be a universal binary. There is also quite a bit of
experience with it on the list here so there are multiple places to
look for help with it.
I have to ask though, are you defining a class for every entity in
your model? If so, you are likely doing far more work than you need
to. If you don't have any custom business logic that you need to put
in an entity, just let its class be EOGenericRecord. You get all the
getting and setting functionality you need and have no code to
maintain, and if you end up needing to customize the code, you
haven't lost anything because your custom class will almost certainly
extend the EOGenericRecord class so references to it elsewhere in
your app will continue to work.
Dave
On Feb 19, 2006, at 7:43 PM, Loren Cahlander wrote:
Hi folks,
I did some WebObjects development way back when it first came out.
That type of work dried up in my area, so I went on to other java
projects. I am now getting back into the swing of things with my
own WebObjects project. I just need a little help to get my
project going.
I have specified the package for each of the classes. When I go to
generate the java source, it does not place the java file in the
appropriate directory according to the package structure. What am
I missing?
Thanks,
Loren
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40avendasora.com
This email sent to email@hidden
_______________________________________________
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