Leon Messerschmidt wrote:
> 
> Hi,
> 
> I found some errors in Torque.
> 
> I fixed a couple of bugs in table.java and column.java before I could get
> sql2xml to work.
> 
> In objects.vm there are getId() and setId() methods.  I'm not exactly sure
> what they do, but they conflict with those in BaseObject.  I commented them
> out and everything compiled ok.  Does anyone know what these are supposed to
> do and how I can permanently fix it?

They are supposed to override those in BaseObject.  There should not be
any conflict, so you have the latest BaseObject?  The basic idea is to
make it easy to handle multi-column PK's.  I did this simply, by
concatenating the keys in a String.  I would like to move to an inner
class PK that returns a similar string in its toString() method.  There
has also been some suggestion that getId/setId are not good names and
that getPrimaryKey/setPrimaryKey are better.  Unless anyone gives a -1
to this idea, I will probably switch the attribute name in BaseObject
when moving to an inner class implementation in Torque.

John McNally


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