[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1842) composite primary key with identity column and foreign key

Lakshmana Gandh (JIRA) noreply at atlassian.com
Fri Aug 11 13:35:19 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1842?page=comments#action_23902 ] 

Lakshmana Gandh commented on HHH-1842:
--------------------------------------

same issue i am also facing, any solution??

> 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




More information about the hibernate-issues mailing list