I am trying to generate xxx.hbm.xml mapping file thru XDOCLET for composite-id type. I have got three table in my DB schema (Roles, User_Head & User_Det).
RoleId Varchar2(3) Primary Key
RoleDesc Varchar2(20) Not Null
UserId Varchar2(6) Primary Key
UserName Varchar2(20) Not Null
UserId Varchar2(6) Not Null References User_Head(UserId)
RoleId Varchar2(3) Not Null References Roles(RoleId)
Constraint userdet_pk Primary Key (UserId,RoleId)
For the Roles tables I have values already inserted in that
ROA Role A
ROB Role B
Now I want to create a composite-id for User_Det table I am unable to do it. What I have done is I have created a two Java Bean Class for User_Head table & User_Det table. But I am unable to create composite-id key thru XDOCLET.
Can anybody know how to workout for this.
Thanks in advance