1 Reply Latest reply on Nov 5, 2004 7:31 AM by askesis

    CMP bean - primary key issue

    mlybarger

      the Jboss ide doesn't seem to put the bean level tag needed
      * @ejb.pk class="Integer"

      maybe i'm doign the steps wrong. here's what i do. New -> Other -> ejb components -> "Entity Bean" , click next, add give the bean a name "User", select Both for local/remote, then finish. right click on new class object -> j2ee -> new cmp field, give it a name of "userId", and a type Integer, select primary key box, select both option (local/remote), click finish. I think there should be something at the class level like the above xdoclet tag.

      ~mark

        • 1. 3851678
          askesis

          I solved this particualr problem by adding a 'primkey-field = "name"' tag in the bean class Xdoclet tags

          Joost