vppconfig - cgen question

From: bogdan_voloshincu (bogdan_voloshinc..ahoo.com)
Date: Mon Sep 20 2010 - 20:50:54 UTC

  • Next message: Dave Lamy: "Re: Bug with EJBQL query referencing two subclasses?"

    Hello ! I try to invoke a cgen task programmatically but i get this error
    :--- referenced object is not a VPPConfig so i fallow the example from the
    cayenne site : http://cayenne.apache.org/doc12/cgen.html

          "Here is an example of using CGen with vppconfig:

    <typedef
        resource="org/objectstyle/cayenne/tools/antlib.xml">
        loaderref="aclasspathloader"
        <classpath refid="aclasspath"/>
    </typedef>

    <typedef name="vppconfig"
        classname="foundrylogic.vpp.VPPConfig"
        loaderref="aclasspathloader">
        <classpath refid="aclasspath"/>
    </typedef>

    <vppconfig id="myconfig">
        <context>
            <property key="myPropertyName" value="myPropertyValue" />
            <tool key="myToolName" className="org.myDomain.MyTool" />
        </context>
    </vppconfig>

    <cgen map="src/datamap.xml"
        destDir="src/doc/web"
        makepairs="false"
        usepkgpath="false"
        template="EntityReport.vm"
        includeEntities="Artist*"
        outputPattern="*Report.html">
        <config refid="myconfig" />
    </cgen>
    "

    but i can't i can't figure out what is the :

    1) loaderref="aclasspathloader" from the first and second<typedef>

    2) <tool key="myToolName" className="org.myDomain.MyTool" /> - in the
    tutorial myToolName and className would be replace by what classes??
    untiledDomainMap.java ??

    Thank's

    -- 
    View this message in context: http://cayenne.195.n3.nabble.com/vppconfig-cgen-question-tp1531454p1531454.html
    Sent from the Cayenne - User mailing list archive at Nabble.com.
    



    This archive was generated by hypermail 2.0.0 : Mon Sep 20 2010 - 20:51:46 UTC