OK, you where right, I had a typo. But I changed it to:
Here is the new BusinessCardBean declaration: =============================================== /** * This is a one (BusinessCard) to one (BankAccount) relationship. * We can get a BankerDto in the BusinessCardDto.getAutomaticPaymentAccount() method. * We can also setAutomaticPaymentAccount( pBankAccount ) * * @ejb.interface-method * view-type="local" * * @ --ejb.value-object * --compose="com.wf.bd.ice.account.BankAccountDto" * --compose-name="AutomaticPaymentAccountDto" * --members="com.wf.bd.ice.account.BankAccountLocal" * --members-name="AutomaticPaymentAccount" * --relation="external" * * @ejb.relation * name="BusinessCard-AutomaticPaymentBankAccount" * role-name="BusinessCard-has-AutomaticPaymentAccount" * target-ejb="BankAccount" * target-role-name="AutomaticPaymentAccount-belongs_to-BusinessCard" * target-cascade-delete="yes" * * @weblogic.column-map * foreign-key-column="automaticPaymentAccountFK" * key-column="bankAccountPK" **/ public abstract com.wf.bd.ice.account.BankAccountLocal getAutomaticPaymentAccount(); public abstract void setAutomaticPaymentAccount( com.wf.bd.ice.account.BankAccountLocal pAutomaticPaymentAccount ); and now I get this error: =========================== [java] In bean BankAccount, the abstract method, getAutomaticPaymentAccountDto(), does not correspond to any container-managed field and is not implemented in the bean class or any of its superclasses. [java] In bean BankAccount, the abstract method, setAutomaticPaymentAccountDto(com.wf.bd.ice.account.BankAccountDto), does not correspond to any container-managed field and is not implemented in the bean class or any of its superclasses. Here is my BankAccount DTO declaration: ======================================= /** * Manage the BankAccount's DTO/Form object * * This method needs to be implemented because Product EJB's use it to access * the BankAccountDto object for the AutomaticPaymentAccount object. * * @ejb.interface-method **/ public abstract com.wf.bd.ice.account.BankAccountDto getAutomaticPaymentAccountDto(); /** * @ejb.interface-method **/ public abstract void setAutomaticPaymentAccountDto( com.wf.bd.ice.account.BankAccountDto pBankAccountDto ); -----Original Message----- From: Harkness, David [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 3:11 PM To: [EMAIL PROTECTED] Subject: RE: [Xdoclet-user] Relationship errors with WLS 8.1... [EMAIL PROTECTED] wrote: > As per your last email, I switched from: > ---------------------------------------- > @weblogic.column-map > key-column="automaticPaymentAccountFK" > foreign-key-column="bankAccountPK" > > to this: > -------- > @weblogic.column-map > key-column="bankAccountPK" > foreign-key-column="automaticPaymentAccountFK" You originally had @weblogic.target-column-map ^^^^^^^ Did you remove it, or is the above a typo? Given the error message, it looks like it's still specified with "target-" given the error message (looking for the FK in the BankAccount bean). Please verify that and paste the new code. I'm just checking because I have pretty much the same thing as you except it's N:1 instead of 1:1. Keep in mind that those need to be the database column names -- not the CMP field names. In your case they are the same, correct? In any case, here's one of my EJBs that has a uni-directional N:1 relationship to another bean. This is from the child (OmgData) that has an FK to the OmgSource that owns it. The OmgSource bean has no accessor for the children (thus the uni-dir). The only difference should be that yours is 1:1. I am decidedly perplexed. /** * @ejb.interface-method * view-type="local" * @ejb.relation * name="OmgSource-OmgData" * role-name="OmgDatas-belong-to-a-OmgSource" * cascade-delete="yes" * target-ejb="OmgSource" * target-role-name="OmgSource-has-many-OmgDatas" * target-cascade-delete="no" * target-multiple="yes" * @weblogic.column-map * foreign-key-column="omg_source_id" * key-column="id" */ public abstract OmgSourceLocal getOmgSource ( ) ; public abstract void setOmgSource ( OmgSourceLocal buProfile ) ; David Harkness Sr. Software Engineer Sony Pictures Digital Networks (310) 482-4756 ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user