I like this idea of having getPrimaryKey return ObjectKey but getIdField
return whatever type it is. 

Given that it will be a breaking change, perhaps it is something we can
slate for the 4.0 version?

- Stephen

> -----Original Message-----
> From: Russell Smyth [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 27, 2002 12:07 PM
> To: 'Turbine Torque Developers List'
> Subject: RE: Torque Experience
> 
> > It might be a better api, if the properties which use the column
names
> > returned the column type, but getPrimaryKey() should return an
> > ObjectKey.
> 
> I have to chime in here and say that this is almost a must! Especially
as
> there is
> no clean way to convert NumberKey to it's numeric value (that I have
found -
> The only way
> I could come up with was Integer.parseInt(NumberKey.toString()), which
is
> troublesome
> due to possible NumberFormatExceptions.)
> 
> I had not gotten to the point yet where I could look at the code and
> reccomend changes, but
> for our useage this change is almost mandatory - we would have to do
it
> internally if the change
> is not made in torque proper.
> 
> Russell Smyth
> 
> --
> To unsubscribe, e-mail:   <mailto:turbine-torque-dev-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:turbine-torque-dev-
> [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to