Hi all,

i am using two entity beans (DpProfile222, DpDealingPart222) with a
one-to-many bi-directional relation between them :
DpProfile222 has many DpDealingPart222s. These relations are based on
xdoclet and for each entity are:

a) DpProfile222 
   /**
    * @ejb:interface-method view-type="local"
    * @ejb:relation name="xmi_251" role-name="theDpProfile"
    *
    * @jboss:target-relation fk-column="DP_PROFILE_ID"
related-pk-field="dpProfileId"
    */
    public abstract Collection getDealingParts();
   /**
    * @ejb:interface-method view-type="local"
    */
    public abstract void setDealingParts(Collection dealingParts);

b) DpDealingPart222
   /**
    * @ejb:interface-method view-type="local"
    * @ejb:relation name="xmi_251" role-name="thedealingParts"
target-multiple="yes"
    *
    * @jboss:relation fk-column="DP_PROFILE_ID"
related-pk-field="dpProfileId"
    */
    public abstract DpProfile222Local getDpProfile222();
   /**
    * @ejb:interface-method view-type="local"
    */
    public abstract void setDpProfile222(DpProfile222Local bean);


Everything works fine, but when i try to create DealingPart222 JBoss
responds : "...Duplicate column name..."

Thanks in advance

Vassilis Petropoulos
Athens, Greece


-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to