> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Danilo
> Luiz Rheinheimer
> Sent: 6. februar 2003 20:18
> To: Aslak Hellesoy
> Subject: Re[4]: [Xdoclet-user] WebLogic DD
>
>
> Hello Aslak,
>
> Thursday, February 6, 2003, 1:01:23 PM, you wrote:
> AH> @weblogic.target-column-map should only be used for
> unidirectional 1-->N
> AH> relationships.
> AH> For 1<-->N and 1<--N, use @weblogic.column-map and place the
> tag on the N
> AH> side (RequestBean). Just like you did.
> AH> Try to remove @weblogic.target-column-map entirely and see if it works
> AH> better for you.
>
>   I did it, but it still do not work. When I run weblogic.ejbc I got
> this error :
>
> do-bea:
>      [java] [EJBCompiler] : Recompiling because no previous hashes found
>      [java] [EJBCompiler] : Compliance Checker said bean was compliant
>
>      [java] ERROR: Error from ejbc: Error while reading
> 'META-INF/weblogic-cmp-r
> dbms-jar.xml'. The error was:
>      [java]
>      [java] In relationship 'a555', role 'theRequest', invalid
> column 'idCustome
> r', a column-map element contains an invalid key-column. The
> key-column is not d
> efined in the related bean or it's not recognized because of case
> mismatch.
>
> <weblogic-rdbms-relation>
>   <relation-name>a555</relation-name>
>   <weblogic-relationship-role>
>     <relationship-role-name>theRequest</relationship-role-name>
>     <relationship-role-map>
>       <column-map>
>         <foreign-key-column>THE_CUSTOMER_FK</foreign-key-column>
>         <key-column>idCustomer</key-column>
>       </column-map>
>     </relationship-role-map>
>   </weblogic-relationship-role>
> </weblogic-rdbms-relation>
>
>   Looks ok to me.
>   What can be wrong now ?
>

It's all in the error message from ejbc.
You also need to put the @ejb.pk-field tag on the referenced id method in
your bean on the other side:

RequestBean {
  /**
   * @ejb:pk-field
   * @weblogic:dbms-column idCustomer           (The XDoclet 1.1.2 tag)
   * @ejb:persistence column-name="idCustomer"  (The XDoclet 1.2.x tag)
   */
  public Integer getId() {..}

}

HTH,
Aslak

> --
> Best regards,
>  Danilo                            mailto:[EMAIL PROTECTED]
>
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to