From: James O. (JIRA) <no...@at...> - 2006-06-15 15:50:32
|
composite primary key with identity column and foreign key ---------------------------------------------------------- Key: HHH-1842 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1842 Project: Hibernate3 Type: Bug Components: metamodel Versions: 3.1.3 Environment: Hibernate 3.1.3 DB2 os390 Reporter: James ODea I need to map a table (AddressTable below) that uses an identity column and an integer column as the composit primary key. The integer column is a foreign key. Is there an example of how to map this? ClientTable CLIENT_KEY INTEGER <PK> IDENTITY AddressTable CLIENT_KEY INTEGER <PK FK> NOT NULL ADDRESS_KEY INTEGER <PK> IDENTITY -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |