I encounter some strange behaviour:
I have two tables A and B. A has PK pkA and B has a compbound PK(pkA, pkB). B.pkA references A.pkA. The relationship and everything works fine, but when I deploy the beans and the tables are not existing the created table for B has only the pkA as a PK-field in the DB. pkB misses the constraint. My XDoclet for the method getPkB is:
@ejb.interface-method view-type = "local" @ejb.persistence column-name = "pkB" @ejb.pk-field @ejb.persistent-field // I just played with that. I know it's deprecated
@jboss.persistence pk-constraint = "true"But it did'nt work.
Sorry, I'm not smart enough to use a forum. Could anyone please delete this posting?