4 Replies Latest reply on Jun 28, 2005 1:07 PM by Emmanuel Bernard

    Composite unique keys

    kee yes Newbie

      I know how to generate a composite primary key. I am using a concrete Pk class with @Embeddable annotation. In the entity class I just call getPk and everything is fine

      How do I create a composite unique key constraint?

      I want a combination FIELD_A, FIELD_B both unique but with a single Constraint name CONSTRAINT_AB

      Any help is appreciated