----- Original Message -----
From: Fedor Karpelevitch <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Wednesday, October 04, 2000 11:00 AM
Subject: Re: Newtorque contribution ? Adding features
> Herv� Guidetti wrote:
>
> > I use NewTorque for my application. I needed some more features as we
> > already discuss.
>
> Have you implemented all that already? Great!
Yes all theses features are working.
>
> > Theses features are :
> > - autoIncrement (I added a boolean in the Column class)
>
> Does it work for all DBs?�
Not yet. This works on MySQL.
>
> > - table readOnly (I add a boolean in the Table class)
>
> Cool! I assume only thing it does is that it removes set... methods,
right?
No. To retrieve data object, the doSelect method of the Peer need the set
methods. So what it does, is just return null in the doUpdate, doDelete,
doInsert methods of Peers.
> Do you think it would make sense to add this attribute to columns as well?
>
> > - print all the key with Java Type (this is useful to generate retrieve
methods)
>
> Could you explain. I am not sure I understand...
>
An example : an Address.
In AddressPeer, it autogenerate the method
Address static retrieve(int address_id)
The "printKeyWithJavaType" method just print the "int address_id". If there
are many key, there are separate with comma.
> > - history attribute in column tag. I had a History table in my
application.
> > By specifying that the column must be "historifiable" this generate
> > automatically the code to save changes in the history table. This table
is :
> >
> > <table name="history">
> > <column name="history_sid" null="false" primaryKey="true"
> > type="INTEGER" autoIncrement="true" />
> > <column name="change_dt" type="TIMESTAMP"/>
> > <column name="name_table" type="VARCHAR" size="255"/>
> > <column name="field" type="VARCHAR" size="50"/>
> > <column name="old_value" type="VARCHAR" size="255"/>
> > <column name="row_id" type="INTEGER"/>
> > </table>
>
> This looks nice but do we need to incorporate it into turbine by default?
Is it general enough?
This could be optionnal. If you don't specify history="true" it will not
need this table.
>
> > I also change a bit the templates to generate automatically the retrieve
> > methods for data objects.
>
> What do you mean?
>
> > This works fine and generate compilable code.
> > I think this would be great to add theses features to Turbine.
> > I will soon be able to give patchs for classes and templates.
>
> Great! Hope to see that soon...
>
> fedor.
>
>
Herv�
> ------------------------------------------------------------
> 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]