On Sunday 31 December 2000 22:18, you wrote:
> on 12/31/2000 12:31 PM, "Daniel Rall" <[EMAIL PROTECTED]> wrote:
> > The only IDBroker property that I see is cleverquantity.
>
> Ok. I apologize.
>
> So, I read the source code to BasePeer.doInsert():
>
> String keyMethod = tableMap.getPrimaryKeyMethod();
>
> // If the keyMethod is SEQUENCE or IDBROKERTABLE, get the id
> // before the insert.
> if (keyMethod.equals(TableMap.SEQUENCE))
> {
> id = dbMap.getIDBroker()
> .getNextSequenceId(tableMap.getPrimaryKeyMethodInfo());
> }
> else if (keyMethod.equals(TableMap.IDBROKERTABLE))
> {
> id = dbMap.getIDBroker().getNextId(tableName);
> }
>
> You need to create a TableMap who's primaryKeyMethod() is SEQUENCE instead
> of IDBROKERTABLE. This is done by editing your project-schema.xml file to
> have:
>
> <table name="foo" idMethod="autoincrement">
>
> However, I suggest that you always use IDBroker instead.
>
> -jon
I'm curious, why always?
killi
--
Penguins are nice animals -
if you get to know them!
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]