Hello Aslak,

Thursday, February 6, 2003, 9:39:11 AM, you wrote:

AH> How could we know? We haven't seen your java source with tags!

  Good point.
  I have a 1-N bidiretional relationship between Customers and
  Requests, 1 customer have n requests.
  I did some tests using the @weblogic.column-map and this make the
relationship-role-map to have content. But it still do not work. So
please see what is wrong here.

  This is the customer code :

public abstract class CustomerBean implements EntityBean {

/**
* @ejb.pk-field
* @ejb.persistence
*     column-name="ID_CUSTOMER"
*       jdbc-type="VARCHAR"
*        sql-type="VARCHAR(32)"
* @ejb.interface-method view-type="local"
*/
        public abstract java.lang.String getIdCustomer ();

/**
* @ejb.interface-method view-type="local"
*/
        public abstract void setIdCustomer(java.lang.String id);

   /**
    *
    * @ejb.interface-method view-type="local"
    * @ejb.transaction      type="Required"
    * @ejb.relation
    *    name="a555"
    *    role-name="theCustomer"
    *
    * @jboss.target-relation  related-pk-field="ID_CUSTOMER"
    *                                fk-column="THE_CUSTOMER_FK"
    *
    * @weblogic.target-column-map
    *    foreign-key-column="THE_CUSTOMER_FK"
    */

        public abstract Collection getTheRequest();

   /**
    * @ejb.interface-method view-type="local"
    */
        public abstract void setTheRequest(Collection theRequest);
...
}

  And this is the request bean :

public abstract class RequestBean implements EntityBean {

/**
* @ejb.pk-field
* @ejb.persistence
*     column-name="ID_REQUEST"
*       jdbc-type="VARCHAR"
*        sql-type="VARCHAR(32)"
* @ejb.interface-method view-type="local"
*/
        public abstract java.lang.String getIdRequest ();

/**
* @ejb.interface-method view-type="local"
*/
        public abstract void setIdRequest(java.lang.String id);

   /**
    *
    * @ejb.interface-method view-type="local"
    * @ejb.transaction      type="Required"
    * @ejb.relation
    *    name="a555"
    *    role-name="theRequest"
    *
    * @jboss.relation  related-pk-field="idCustomer"
    *                         fk-column="THE_CUSTOMER_FK"
    *
    * @weblogic.column-map
    *    foreign-key-column="THE_CUSTOMER_FK"
    *    key-column="idCustomer"
    */
    public abstract com.sigea.testes.CustomerLocal getTheCustomer();
   /**
    * @ejb.interface-method view-type="local"
    */
    public abstract void setTheCustomer(com.sigea.testes.CustomerLocal theCustomer);

    ...
}
  


-- 
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

Reply via email to