Youngho Cho wrote:
> 
> Hi,
> 
> I'm using MySQL, use autoIncrement  for primarykey  and I'm IDBroker for a Table 
>PrimaryKey.
> 
> In this case , How do I set the PrimaryKey column in schema.xml ?
> 

If you want auto-increment, this is correct for generating sql. The OR
mapping stuff will look for 
idMethod="autoincrement" attribute as well.  I think I should remove the
autoIncrement attribute as it is obvious from the idMethod attribute. 
Any objections?

> Is it should be
> <column name="ROWID" required="true" autoIncrement="true" primaryKey="true" 
>type="INTEGER"/>
>


If you want to use IDBroker this would be correct, or you can specify it
explicitely,  idMethod="idbroker"
 
> or is it should be
> <column name="ROWID" required="true" primaryKey="true" type="INTEGER"/>
> 
> I'm a little confuse.
> 
> Thanks.
> 
> youngho
> 
> N<.nÇ+?·­º¶â?ê'-+-ÂSäSx¢¢dèº{.nÇ+?·­º¶â?ê~X¬·
> +?)àv^,r??yªÜ?m§ÿðà    sSV«r¯yÊ&þÛ«n)ÞãIb²Ü(®H§?Ú ±Ê&üúènW¦²:'ÂSäSx¢om==


------------------------------------------------------------
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