Have you tried
tMap.addPrimaryKey (key1);
tMap.addPrimaryKey (key2); ?
Please note that though it was in the back of my head that BasePeer should
support multi-column keys, it is possible that some code in BasePeer assumes
there is only one primary key column. You should probably expect to make
changes to BasePeer and associated classes.
----- Original Message -----
From: John Thorhauer <[EMAIL PROTECTED]>
To: turbine <[EMAIL PROTECTED]>
Sent: Wednesday, July 05, 2000 7:49 AM
Subject: mutli-column addPrimaryKey ??
> I am building a mapbuilder class and have a Primary key in my postgrs
> table defined like so:
>
> Primary Key (col1, col2)
>
> So how do I define this primary key in my mapbuilder class?
>
> dbMap = new DatabaseMap(getTable());
> dbMap.addTable(getTable());
> TableMap tMap = dbMap.getTable(getTable());
>
> tMap.addPrimaryKey (?????, ?????);
>
> Thanks,
> John
> --
> ********************************
> ** John Thorhauer
> ** [EMAIL PROTECTED]
> ********************************
>
>
> ------------------------------------------------------------
> 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]