Just downloaded the TDK (1.1b1) and set up my first webapp. Woohoo!
Downloaded Torque also, (standalone, couldn't get the tdk version running).
It works!

A few comments and questions from someone who is using Turbine, but is a
newbie to TDK and Torque.

1) README_FIRST.txt refers to "tdk/webapps/site/", but this dir does not
exist in the distro.  Either the readme is wrong, or the dir is missing.



2) I created a schema and created the om classes and the sql.  When building
the generated java files I got the following error:

    [javac] Found 1 semantic error compiling "ListsPeer.java":
    [javac]
    [javac]    144.               if( obj.getList() > 0 )
    [javac]                           <----------->
    [javac] *** Error: The type of this expression, "String", is not
numeric.

This occurs in the buildCriteria function:

    /** Build a Criteria object from the data object for this peer */
    public static Criteria buildCriteria( SvrLists obj )
    {
        Criteria criteria = new Criteria();
        /*if( obj.getVisitorid() > 0 )
            criteria.add( VisitorPeer.VISITORID, obj.getVisitorid() );*/
              if( obj.getList() > 0 )
            criteria.add( SvrListsPeer.LIST, obj.getList() );

        criteria.add( HEAD, obj.getHead() );

        criteria.add( NAME, obj.getName() );

        criteria.add( LOCKED, obj.getLocked() );
              return criteria;
    }

The LIST column is indeed a VARCHAR field, but also a PRIMARY KEY.  VARCHARs
may not be the most efficient PKs around, but they are certainly legal.
This seems to be an uneccessary restriction on schemas (and a showstopper
for me :(



3) Why are there no M$SQL sql templates.  If it's just that I'm the only
sucker around using the stuff, I'd like to volunteer to create them and
contribute.



Magnus



------------------------------------------------------------
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