From: sudheer (JIRA) <no...@at...> - 2006-06-29 20:39:17
|
how to create parent/child relation ship with a coposite key ? -------------------------------------------------------------- Key: HHH-1867 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1867 Project: Hibernate3 Type: Task Versions: 3.1.3 Environment: hibernate 3.1.3 /Oracle Reporter: sudheer Hi, I am having 3 tables and they are related as follows. Table A -----compositePK1(col1,col2) Table B---- compositPK2(compositePK1,col3); Table C-- PK(col3). I am success fully inserted a rows in B and C together . If i add A then I am facing problems. It is complaing Foreign key (FKCFD7D0B39D0C4AE:NWX_ORDER_STATUS [O_R_UNIQ])) must have same number of columns as the referenced primary key (NWX_ORDER [ORDER_ID,REVISION_NO]) -- 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 |