Generating EOs from an EOModel

From: Chuck Hill (chil..lobal-village.net)
Date: Thu Jun 05 2003 - 16:53:59 EDT

  • Next message: Anders Peterson: "Re: 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



    This archive was generated by hypermail 2.0.0 : Thu Jun 05 2003 - 16:52:04 EDT