RE: Whoops... [SOLVED] WOGen: generated code won't compile...

From: Ian McDougall (ian.mcdougal..mode.com)
Date: Fri Nov 01 2002 - 14:52:24 EST

  • Next message: Andrus Adamchik: "Re: Whoops... [SOLVED] WOGen: generated code won't compile..."

    Whoops... I jumped the gun...

    I did _not_ have an entity called EOGenericRecord, but I did have a few
    entities which were assigned to the EOGenericRecord class, rather than their
    own custom class. These classes were modelling join tables which were never
    generated in previous frameworks, and therefore there was no need to give
    them custom class names.

    This does raise two issues:
    - EOGenericRecord should not be created by the WOGenerator task.
    - There should be a way to specify entities that should not be generated.

    Again, sorry. I'm feeling like quite the tool. :P

    > -----Original Message-----
    > From: Ian McDougall [mailto:ian.mcdougal..mode.com]
    > Sent: Friday, November 01, 2002 12:36 PM
    > To: Ian McDougall; WOLips
    > Subject: [SOLVED] WOGen: generated code won't compile...
    >
    >
    > Seems I have an entity in my EO model named EOGenericRecord, which I was
    > intending for prototyping purposes as some point in the past.
    >
    > So... remove that entity, and all is fine. I stumbled upon this by using
    > the original EOGenerator executable to do the class splits, and it avoided
    > creating EOGenericRecord.
    >
    > Perhaps that's something that should be put into the WOGenerator code?
    >
    > > -----Original Message-----
    > > From: Ian McDougall [mailto:ian.mcdougal..mode.com]
    > > Sent: Friday, November 01, 2002 11:44 AM
    > > To: WOLips
    > > Subject: WOGen: generated code won't compile...
    > >
    > >
    > > I'm running into the compiler error message when attempting to compile
    > > classes created by the wogen ant task:
    > >
    > > "the hierarchy of the type _CLASSNAME is inconsistent"
    > >
    > > for each entity (CLASSNAME) superclass file generated from my eomodel.
    > >
    > > my ant task looks like:
    > >
    > > <!-- generate EO classes -->
    > > <taskdef name="wogen"
    > > classname="org.objectstyle.woproject.ant.WOGenerator">
    > > </taskdef>
    > >
    > > <target name="generate_eo_classes">
    > > <wogen map="MyModel.eomodeld" destDir="eosrc"
    > > usepkgpath="false" />
    > > </target>
    > >
    > > What am I doing wrong?
    > >
    > > _ _ _
    > > Ian McDougall ian.mcdougal..mode.com
    > >
    >



    This archive was generated by hypermail 2.0.0 : Fri Nov 01 2002 - 14:52:29 EST