Torque will not create an object ID for a new object until that object is
.save()'d regardless of whether you're using an IDBroker or a native
sequence/autoincrement column.

Note that if you use the IDBroker, you can pre-fetch and set the next ID
(the ID that the next saved object *will get* when saved) if you want.  This
is useful for double-click protection in webapps.

-- Bill

Another important thing to note is that the IDBroker

> When it is saved.
>
> [EMAIL PROTECTED] wrote:
> >
> > Does it happen when you create the object?
> >
> > Foo myFoo = new Foo();
> >
> > Or does it happen when you save the object?
> >
> > myFoo.save();
> >



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

Reply via email to