I'm 'hibernating' a legacy database and have run into a problem. How do I map a table with a primary key that consist of two columns?
The table is defined as:
Code:
CREATE TABLE "BUSPGM"
(
"BUSID" IDNUMBER NOT NULL,
"PGMID" IDNUMBER NOT NULL,
"PGMTYPE" PROGRAMTYPES NOT NULL,
UNIQUE ("PGMID"),
CONSTRAINT "PKEY_BUSPGM" PRIMARY KEY ("BUSID", "PGMID")
);
I made a workaround for this table, using the pgmid column as a primary key in the mapping file. But I have several other tables with the same problem.