4 Replies Latest reply on Jul 12, 2004 12:31 AM by lc

    CMR constant join in compound primary key

    lc Newbie

      I have a CMR for 1to1 relationship to a table with a compound primary key.
      I am mapping 1 column and would like to map a constant to the 2nd column. Can I do this? Thanks.

      Here is my xdoclet snippet:
      /**
      * @ejb.interface-method
      *
      * @ejb.relation
      * name="Link - Problem"
      * role-name="Link may have one Problem"
      * target-ejb="Problem"
      *
      * @jboss.relation
      * related-pk-field="id"
      * fk-column="id"
      * @jboss.relation
      * related-pk-field="type"
      * fk-column="<a constant?>"
      *
      */