Are you using a third table (which has file and document column ) to link
the relation. Because the table-name is specified only in that case.. If you
are, then please check that the column name in both the table are "file_id".

> I am having trouble running ejbc on a pair of beans. The first, Document
is a remote cmp entity bean which has a unidirectional one-to-many
relationship with File, a local cmp entity bean. The error I am getting is
as follows:
>
> In relationship 'Document-Files', role 'Files-have-Document', invalid
column 'file_id', a column-map element contains an invalid key-column. The
key-column is not defined in the related bean or it's not recognized because
of case mismatch.
>
> Here is the xml snippet which causes the problem
>
> ...
>   <weblogic-rdbms-relation>
>     <relation-name>Document-Files</relation-name>
>     <table-name>WebTag_File</table-name>
>     <weblogic-relationship-role>
>       <relationship-role-name>Files-have-Document</relationship-role-name>
>       <column-map>
>         <foreign-key-column>file_id</foreign-key-column>
>         <key-column>file_id</key-column>
>       </column-map>
>     </weblogic-relationship-role>
>   </weblogic-rdbms-relation>
> </weblogic-rdbms-jar>
>
> "file_id" is the primary key of the File bean. I have ensured that case
matches the dbms-column element of the File Bean.
>
> I have been stuck with this problem for several days without luck, and
have been unable to find the answer to this at Google groups or anywhere
else. Any help, needless to say, would be greatly appreciated.
>
> Best, Dana
>
> This message is for the named person's use only. It may contain sensitive
and private proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you are not the intended recipient, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender. You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE
FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT
SUISSE FIRST BOSTON reserve the right to monitor all e-mail communications
through its networks. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorized to state them to be the views of any such entity.
> Unless otherwise stated, any pricing information given in this message is
indicative only, is subject to change and does not constitute an offer to
deal at any price quoted. Any reference to the terms of executed
transactions should be treated as  preliminary only and subject to our
formal written confirmation.
>
>
===========================================================================
> 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".

Reply via email to