I think idbroker is a form of hilo.  It grabs a range of ids in one call
to the db and keeps a local count until that range is used up.  What
feature of hilo do you desire that is not a feature of idbroker.  There
is a guid class in cvs as well, though it does not implement the
IdGenerator interface.  I would say the work to add it is minimal in
difficulty, but may touch quite a few files.

john mcnally

Ian Lim wrote:
> 
> Hi
> 
> Is it quite difficult to implement something like idMethod="guid" or
> idMethod="hilo"
> Where a globally unique id can be use for the primary key generation?
> 
> Regards
> ==========
> Ian Lim
> email: [EMAIL PROTECTED]
> homepage: http://www.webappcabaret.com/mallim
> 
> ----- Original Message -----
> From: "John McNally" <[EMAIL PROTECTED]>
> To: "Turbine Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 11, 2001 12:30 AM
> Subject: Re: Copying and then saving a row into DB, how do I get the primary
> key
> 
> > Torque expects that the code will have supplied the pk's prior to the
> > insert when using idMethod="none".  If the db is generating the id, you
> > should use autoincrement (i think that is most appropriate for an
> > identity), or sequence, or native for the latest cvs.
> >
> > "Pugh, Eric" wrote:
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

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

Reply via email to