torque should give an int type if you have declared the column
type="INTEGER", you will get byte[] for column types like BINARY or
VARBINARY.  Are you sure you have declared the column type as INTEGER?



Alexander Banthien wrote:
> 
> Hi all,
> 
> I would greatly appreciate a little help on how to use the function
> <Class>Peer.retrieveByPK(byte[]) that torque produces. (where my PK is
> an INTEGER)
> 
> Why the byte[] as an argument?
> How do I convert my "id" (coming out of ParameterParser) into a byte[],
> so that MySQL will understand what is meant? a simple getBytes() doesn't
> do the job.
> 
> Thanks in advance, Regards
> 
> Alexander
> 
> --
> ----------------------------------------------------------
> Alexander Banthien
> JusTec GmbH
> Haslacher Str. 126
> 79115 Freiburg
> Germany
> Tel:+49 (0) 761 401269 00
> Fax:+49 (0) 761 401269 13
> WWW: http://www.justec.de
> E-Mail: [EMAIL PROTECTED]
> ----------------------------------------------------------
> 
> ------------------------------------------------------------
> 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]

Reply via email to