From: Kitty J. <kit...@ya...> - 2002-05-03 15:23:43
|
Hello all, I have an Entity A with PK is col1, Entity B with PK is col1 and col2. Col1 is foreign key of Entity1. My relationship is one to many <relationships> <ejb-relation> <ejb-relation-name>Entity1-Entity2</ejb-relation-name> <ejb-relationship-role> <ejb-relationship-role-name>Entity1-has-manyEntity2</ejb-relationship-role-name> <multiplicity>One</multiplicity> <relationship-role-source> <ejb-name>Entity1</ejb-name> </relationship-role-source> </ejb-relationship-role> <ejb-relationship-role> <ejb-relationship-role-name>Entity2 belong to entity1</ejb-relationship-role-name> <multiplicity>Many</multiplicity> <cascade-delete/> <relationship-role-source> <ejb-name>Entity2</ejb-name> </relationship-role-source> <cmr-field> <cmr-field-name>col1</cmr-field-name> </cmr-field> </ejb-relationship-role> </ejb-relation> </relationships> When i deploy this jar file on Jboss 3.0 RC1, it automatically create PK for entity2 is column col1 only and ignore my primarykey class inside jar file. How can my pk in this case will base on Primarykey class. I did specify this Primirykey class inside ejb-jar already. Pls help me. thanks. --------------------------------- Do You Yahoo!? Yahoo! Health - your guide to health and wellness |