Yes, I am implementing 1:m relationships. Do you think the tag is wrong?

What does ejb-jar.xml says about your <primkey-field> tag? Is it set correctly? Error 
you are getting seems to be caused by a wrong primary key setting. Am I right?

No, partyTaxInformationId is defined as key in PartyTaxInformationEJB:

Check the ejb-jar.xml

      
         <![CDATA[Party Tax Information]]>
         <display-name>PartyTaxInformation EJB</display-name>

         <ejb-name>PartyTaxInformationEJB</ejb-name>

         
<local-home>py.com.roshka.wops4.party.taxInformation.interfaces.PartyTaxInformationEJBLocalHome</local-home>
         
py.com.roshka.wops4.party.taxInformation.interfaces.PartyTaxInformationEJBLocal

         
<ejb-class>py.com.roshka.wops4.party.taxInformation.ejb.PartyTaxInformationEJB</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         False
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>PartyTaxInformationEJB</abstract-schema-name>
         <cmp-field >
            <![CDATA[]]>
            <field-name>partyTaxInformationId</field-name>
         </cmp-field>
         <cmp-field >
            <![CDATA[]]>
            <field-name>taxAuthority</field-name>
         </cmp-field>
         <cmp-field >
            <![CDATA[]]>
            <field-name>taxPercent</field-name>
         </cmp-field>
         <cmp-field >
            <![CDATA[]]>
            <field-name>taxRegistrationNumber</field-name>
         </cmp-field>
         <cmp-field >
            <![CDATA[]]>
            <field-name>typeOfTaxRegistration</field-name>
         </cmp-field>
          <primkey-field>partyTaxInformationId</primkey-field>

         
            <query-method>
               <method-name>findAll</method-name>
               <method-params>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(o) FROM PartyTaxInformationEJB o]]></ejb-ql>
         
          <!-- Write a file named ejb-finders-PartyTaxInformationEJB.xml if you want 
to define extra finders. -->
      

-----------------------

Hope this helps.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851929#3851929

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851929


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to