I am getting "CMP field for key not found"

for following ejb-jar.xml

   
      <ejb-relation>
         <ejb-relation-name>user-agents</ejb-relation-name>
                        
         <ejb-relationship-role> 
            <ejb-relationship-role-name>user-is-agent</ejb-relationship-role-name>
                                
            < multiplicity > One </ multiplicity > 

            <relationship-role-source> 
               <ejb-name>User</ejb-name> 
            </relationship-role-source> 
            
            <cmr-field>
               <cmr-field-name>agent</cmr-field-name> 
            </cmr-field> 
         </ejb-relationship-role> 

         <ejb-relationship-role> 
         
            <ejb-relationship-role-name>agent-is-user</ejb-relationship-role-name>
            
            < multiplicity >One</ multiplicity >             
            
            <relationship-role-source>   
               <ejb-name>Agent</ejb-name> 
            </relationship-role-source> 
          
            <cmr-field> 
               <cmr-field-name>user</cmr-field-name>
            </cmr-field> 
         </ejb-relationship-role> 
      </ejb-relation> 
        


and jbosscmp-jdbc.xml extract is


           
      <ejb-relation>
         <ejb-relation-name>user-agents</ejb-relation-name>
         <foreign-key-mapping/>

         <ejb-relationship-role> 
            <ejb-relationship-role-name>user-is-agent</ejb-relationship-role-name>
            <key-fields>
               <key-field>
                  <field-name>unprkey</field-name>
               </key-field>
            </key-fields>

         </ejb-relationship-role> 

         <ejb-relationship-role> 
            <ejb-relationship-role-name>agent-is-user</ejb-relationship-role-name>
            <key-fields>
               <key-field>
                  <field-name> unfrkey </field-name>                  
               </key-field>
            </key-fields>
         </ejb-relationship-role> 
      </ejb-relation> 
                

Thanks in adavnce


<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825456#3825456";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825456>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to