On Wed, 6 Dec 2000, Magnus ?or Torfason wrote:

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

The 1.1b1 isn't announce, it's a work in progress. I haven't been
able to get back to it in the last couple of weeks. I have only
tried the 1.1b1 with a Linux/MySQL combination and Torque, and
the Peer app generator works fine. I don't know about any other
combinations yet.
 
> 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.

Because the 1.1b1 isn't announced it doesn't have any of the
docs inside. I just built it for people to look at.

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

This was discussed a little while back on the list: it's assumed
that the primary key is an integer, you can simply comment the
offending line out.

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

If you want to make templates for mssql, the you would create
the templates in the conf/torque/templates/sql/base/mssql
directory. You can copy a set of templates for one of
the other supported DBs and go from there.

jvz.



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