"EOReporter -modeldoc" (and maybe -groupdoc) options for cgen?

From: Mike Kienenberger (mkienen..laska.net)
Date: Mon May 23 2005 - 14:01:05 EDT

  • Next message: Mike Kienenberger: "Incorporating VPP code into cgen"

    Does anyone have suggestions on the syntax for adding "EOReporter -modeldoc"
    (and maybe -groupdoc) to cgen?

    -modeldoc generates a single output file, providing access to all entities.
    -groupdoc generates a single output file, providing access to all models
    (Cayenne DataMaps).

    This is useful for when you need to create a template to do something like
    this:

    #foreach ($objEntity in $objEntityList)
        public ${objEntity} create${objEntity}();
    #end

    I was thinking maybe a mode="entity" (default), mode="datamap" cgen
    attribute.

    For objEntityList, I'm looking at something like:

    #set( $objEntityList = $entityUtils.getEntityResolver().getObjEntities() )

    although I'm wondering if having a mode="selected ObjEntities" (yucky name)
    should be provided, in which case, I should probably provide
    $entityUtils.getObjEntities() in addition.

    -Mike



    This archive was generated by hypermail 2.0.0 : Mon May 23 2005 - 13:58:52 EDT