2 Replies Latest reply on Sep 22, 2005 4:49 PM by jamesohearn

    No support for @ejb.pk XDoclet Tag??

    jamesohearn

      It appears that the DTD for the jbosscmp-jdbc.xml document does not support the use of the @ejb.pk XDoclet tag. Specifically, I cannot get the element <prim-key-class> to appear in the document because the DTD doesn't mention it.

      Please correct me if I am wrong. If I'm right, I'd like to know why <prim-key-class> is not supported. In my case, use of an unknown primary key is pretty heavy handed when all I want to do is assure type safety by using a primary key class.

      If using an unknown primary key is my only option, I would very much appreciate finding out how I am supposed to write my XDoclet finder methods and how I'm supposed to handle finding an entity bean by its primary key when using an unknown primary key. I've tried finding some resource that gives me code examples but I've failed to find any. What I do find is lots of xml examples.

      Thanks.

      Environment: Windows XP Professional, JBoss 4.0.2, Hypersonic DB

        • 1. Re: No support for @ejb.pk XDoclet Tag??
          darranl

          The <prim-key-class> is specified in the ejb-jar.xml in the definition of the entity.

          ELEMENT entity (description?, display-name?, small-icon?,
           large-icon?, ejb-name, home?, remote?, local-home?,
           local?, ejb-class, persistence-type, prim-key-class,
           reentrant, cmp-version?, abstract-schema-name?,
           cmp-field*, primkey-field?, env-entry*, ejb-ref*,
           ejb-local-ref*, security-role-ref*, security-identity?,
           resource-ref*, resource-env-ref*, query*)


          • 2. Re: No support for @ejb.pk XDoclet Tag??
            jamesohearn

            Thanks for straightening me out on that.