I am using eogenerator from
http://www.rubicode.com/Software/EOGenerator/
Maybe it addresses some of the issues that you mentioned.
Here is a subset of my build.xml file calling it (2x).
<!-- optional targets -->
<target name="eogen">
<exec dir="." executable="eogenerator.exe" os="Windows
2000">
<arg line="-model CMP.eomodeld"/>
<arg line="-destination src"/>
<arg line="-packagedirs"/>
<arg line="-templatedir
C:\eogenerator\Templates"/>
<arg line="-verbose"/>
</exec>
<exec dir="." executable="eogenerator.exe" os="Windows
2000">
<arg line="-model FileRoom.eomodeld"/>
<arg line="-destination src"/>
<arg line="-packagedirs"/>
<arg line="-templatedir
C:\eogenerator\Templates"/>
<arg line="-verbose"/>
</exec>
</target>
Good Luck
Garry Watkins
Programmer, Information Technology
Motley Rice LLC
28 Bridgeside Blvd.
Mt. Pleasant, SC 29464
843-216-9639
gwatkin..otleyrice.com
-----Original Message-----
From: Chuck Hill [mailto:chil..lobal-village.net]
Sent: Thursday, June 05, 2003 4:54 PM
To: woproject-de..bjectstyle.org
Subject: Generating EOs from an EOModel
Hi,
I'm trying to figure out how to get this to go from inside WOLips. I
found an older message from Pierre Bernard:
http://objectstyle.org/woproject/lists/woproject-dev/2003/02/0003.html
That suggests I can 'right-click on an EOModel file in the WOLips
perspective and select "Enable EO Generation"' That does not seem to
work for me. Am I in the wrong view? Has this been removed? The Help
is a little, er, vague on this.
Then, like Pierre, I decided to roll my own addition to the build and
tried
this:
<!-- Generate EOs -->
<taskdef name="wogen"
classname="org.objectstyle.woproject.ant.WOGenerator">
<classpath />
</taskdef>
<target name="generate.eos">
<wogen map="TestEOModel.eomodeld" destDir="src"/>
</target>
But this does not work either. I see this in the console:
generate.eos:
[wogen] Error generating classes.
[wogen] BUILD FAILED:
file:U:/Projects/Tests/Utilities/build.xml:89:
Error generating classes.
Total time: 20 milliseconds
There is no exception in the log. Perhaps this is because I have a
EOPrototypes model on the classpath? I've tried defining the column and
table names but that did not help.
Is anyone generating EOs from inside WOLips? What do I need to do to
get it to go?
Pierre also noted some drawbacks to WOGen:
- Can't have entities that map no table
- Can't have 2 entities mapping the same table (hence no horizontal
inheritance)
- Generates EOs for all entities in a model. E.g join tables too
- can't have different entities from one model use different templates.
E.g to
have a different inheritance root replacing EOGenericRecord
Would it be useful to include support for Anjo Krank's eojenerator to
overcome these problems? Has someone already done this (said Chuck
hopefully)?
Cheers,
Chuck
Confidential & Privileged
Unless otherwise indicated or obvious from its nature, the information contained in this communication is attorney-client privileged and confidential information/work product. This communication is intended for the use of the individual or entity named above. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error or are not sure whether it is privileged, please immediately notify us by return e-mail and destroy any copies--electronic, paper or otherwise--which you may have of this communication.
This archive was generated by hypermail 2.0.0 : Thu Jun 05 2003 - 17:33:30 EDT