>From the file we could tell that: In weblogic-cmp-rdbms-jar.xml, you specified AddressMatchElementRelationshipRole as db-cascade-delete, then, in ejb-jar.xml, you have to spefify AddressMatchElementRelationshipRole as cascade-delete, but you missed it. That's exactly what weblogic.ejbc complained about.
To make this work as you want, you have to modify weblogic-cmp-rdbms-jar.xml, instead specifying AddressMatchElementRelationshipRole as db-cascade-delete, you have to specify IPAddrRelationshipRole as cascade-delete. -----Original Message----- From: Dongmei Cao [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 3:02 PM To: [EMAIL PROTECTED] Subject: Re: Cascade delete on 1-to-1 CMR problem Thanks! Here is the related code in the xml files. What I want is that when the addressMatchElement gets deleted, the IPAddr should be cascade deleted. The compile error from ejbc said: addressMatchElement-iPAddr: <cascade-delete> must be specified in ejb-jar.xml because <db-cascade-delete> is specified in RDBMS CMP deployment descriptor. Thanks for your help! Dongmei ----- >From weblogic-cmp-rdbms-jar.xml <weblogic-rdbms-relation> <relation-name>addressMatchElement-iPAddr</relation-name> <weblogic-relationship-role> <relationship-role-name>AddressMatchElementRelationshipRole</relationship-ro le-name> <relationship-role-map> <foreign-key-table>NOM_DNS_ADDR_MATCH_LIST_ELEM</foreign-key-table> <primary-key-table>NOM_DNS_IP_ADDR</primary-key-table> <column-map> <foreign-key-column>ADDR_UID</foreign-key-column> <key-column>ADDR_UID</key-column> </column-map> </relationship-role-map> <db-cascade-delete /> </weblogic-relationship-role> </weblogic-rdbms-relation> >From ejb-jar.xml <ejb-relation> <ejb-relation-name>addressMatchElement-iPAddr</ejb-relation-name> <ejb-relationship-role> <description>addressMatchElement</description> <ejb-relationship-role-name>AddressMatchElementRelationshipRole</ejb-relatio nship-role-name> <multiplicity>One</multiplicity> <relationship-role-source> <description>addressMatchElement</description> <ejb-name>AddressMatchElement</ejb-name> </relationship-role-source> <cmr-field> <description>iPAddr</description> <cmr-field-name>ipAddr</cmr-field-name> </cmr-field> </ejb-relationship-role> <ejb-relationship-role> <description>iPAddr</description> <ejb-relationship-role-name>IPAddrRelationshipRole</ejb-relationship-role-na me> <multiplicity>One</multiplicity> <cascade-delete /> <relationship-role-source> <description>iPAddr</description> <ejb-name>IPAddr</ejb-name> </relationship-role-source> </ejb-relationship-role> </ejb-relation> > -----Original Message----- > From: Vikramjit Singh [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 31, 2002 9:02 PM > To: Dongmei Cao; [EMAIL PROTECTED] > Subject: RE: Cascade delete on 1-to-1 CMR problem > > > if u cud send ur ejb-jar.xml it wud be much better. The error you are > getting is that the tag is missing <cascade-delete>. > I have worked on CMR in WLS7.0 only and didnt face any problems as such. > > > -----Original Message----- > > From: A mailing list for Enterprise JavaBeans development > > [mailto:[EMAIL PROTECTED] Behalf Of Dongmei Cao > > Sent: Tuesday, April 01, 2003 7:29 AM > > To: [EMAIL PROTECTED] > > Subject: Cascade delete on 1-to-1 CMR problem > > > > > > Hi, > > > > I'm having this ejbc compilation error when I try to specify > > cascade-delete and db-cascade-delete true on a 1-to-1 > > CMR. I'm using EJB designer in JBuilder 7 to design > > the CMP entity beans. It works fine with 1-to-many > > CMR. I have looked the actual xml files. The ejb-jar.xml > > has the <cascade-delete> specified for the CMR. Did I > > missing anything? I'm using weblogic 7.0.2.0 > > > > Any help is greatly appreciated! > > > > [ejbc] ERROR: Error from ejbc: Error while reading > > 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was: > > [ejbc] > > > > [ejbc] addressMatchElement-iPAddr: <cascade-delete> must be > > specified in ejb-jar.xml because <db-cascade-delete> is specified > > in RDBMS CMP deployment descriptor. > > > > [ejbc] ERROR: ejbc found errors > > > > Dongmei > > > > ================================================================== > > ========= > > To unsubscribe, send email to [EMAIL PROTECTED] and include > > in the body > > of the message "signoff EJB-INTEREST". For general help, send email to > > [EMAIL PROTECTED] and include in the body of the message "help". > > > > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
