Right!

   I'll look at what torque does for the complex mode.  But It would
        really be cool to generate the logical objects that the application
        works with.  I like your idea.

        mike


On Wed, Jan 03, 2001 at 09:26:22AM -0500, Riley, Cameron wrote:
> Mike,
> 
> >2. If not, how about adding a new column type to torque
> ><column name=... type=VIRTUAL> 
> >All that will do is add the following to the BaseObject.
> 
> I have been fiddling with Torque to get it to make my Velocity Templates as
> well as the om classes, currently it does one to one type mapping like the
> OM generation, which is ok for tables with no foreign keys in them. Maybe
> instead of adding functionality to the <appdata> section, adding a new
> series of tags for <objectdata> and <templatedata> to the  project-schema
> xml files so Torque could generate the SQL, OM classes, Object Classes,
> Screen and Action classes and Velocity Templates. The <appdata> could be
> used to supply the information for the generation of the others. Geir added
> functionality to Velocity recently so Velocity could be generated with
> Texen.
> 
> For an <objectdata> tag, I need things like invoicing, which in my case
> pulls from three tables which describe fixedprice, labor and materials. So
> maybe something like;
> 
>  <objectdata>
>   <class name="invoice"> 
>     <package>
>         com.mycompany.invoice
>     </package>
>     <constructor>
>        <arg table="service" column="serviceid" />
>        <arg table="service" />
>     <constructor> 
>     <field name="service" type="Object" table="service" /> 
>     <field name="fixedprice" type="Vector" table="fixedprice" get="true"
> set="true" >
>        <criteria>
>           serviceid    
>        </criteria> 
>     <field>
>     <field name="fixedprice" type="Vector" table="labor" get="true"
> set="true" >
>        ....
>     </field>
>     <field name="fixedprice" type="Vector" table="materials" get="true"
> set="true" >
>       ...
>     </field>   
>     
>   </class>
>  </objectdata>
> 
> Something along those lines, this is a rough sketch, bear in mind :).
> Something similar for a <templatedata> node too which could be the basis for
> template, screen and action generation. 
> 
> I *would* like some sort of scriptable RAD tool for my program objects and
> templates. That way too my role in a web enabled application is to describe
> the application to Torque and then fine tune it once Torque generates the
> basis for it. That is closer to Jason's ideal of generating the application
> from the command line and then going on holiday. 
> 
> 
> 
> Cameron Riley
> 
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to