* Milen Dyankov <[EMAIL PROTECTED]> [030819 13:50]: > Relationship works just fine and JBoss creates "customer" and "product" > fields in "Sales" table. Now what I would like to do is > PRIMARY KEY ('custommer', 'product') > or at least > UNIQUE ('custommer', 'product')
Milen, do you mean "14.1.9.2 Primary key that maps to multiple fields in the entity bean class" from EJB 2.0 Spec? > Is this possible? > > If "custommer" and "product" are not <cmp-field>'s XDoclet seems to > ignore the "@ejb.pk-field" tag for "getCustomers" and "getProduct". If I > make them <cmp-field>'s then the relationship does not work. > > > All I need is to make sure that a customer "X" can have only one record > in table "Sales" for product "Y". Then I would get rid of "id" in > "Sales" which I don't need at all.
pgp00000.pgp
Description: PGP signature