[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_id66&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to