Alter your MapBuilder to specify the correct primary key method for that
table.  If it is set to IDBroker and the column is set to auto_increment,
MySQL will ignore the value that IDBroker gave as the id.  If we want to
standardize on IDBroker as the default we should remove any auto_increment
from its schema.  If we do not want to standardize on IDBroker should we
create different MapBuilders for MySQL?  Or just try to make it obvious in
documentation?

John McNally


----- Original Message -----
From: Youngho Cho <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Friday, July 14, 2000 6:36 PM
Subject: doInsert question


> Hi,
>
> In BasePeer.java doInsert method's document
>      * If the primary key is auto incremented the data in Criteria will
>      * be inserted and the auto increment value will be returned.
>
> I'm confusing to use doInsert method.
> When I insert data to MySQL use doInsert method and check it to MySQL
using
> MySQL client.
> The data inserted right postion
> ( for example if the previous id, which is defined Auto_Increment and
> Primary Key, is n - 1 , then the data inserted n position )
> But the returned value is different value.
> The returned value is the same as ID_TABLE's next_id column value but not
> the same as above primary key value.
>
> Should the returned value and ID_TABLE's next_id value be same as the
> primary key value or not ?
>
> Thanks in advance.
>
> youngho
>
>
>
> ------------------------------------------------------------
> 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