Hi, after doing some research and still not able to find the solution, iam posting this.
We are moving from ejbgen to xdoclet and facing an issue which is quite frustrating.
I will elaborate it as much as i can in hope to find the answer.

I have two entity beans in unidirectional 1->N relation, for some reason inserting record into child table fails and it complains about foreign key constraint (primary key of A not found).
EntityBBean has composite key, primary key of its own b_id and primary key of EntityA, a_id.

EntityABean.java: 
-------------------------------------------------------------------------------------------------------------------------
/**
 * @ejb.bean name="EntityA"
 *      jndi-name="ejb/EntityA"
 *      local-jndi-name="ejbEntityA"
 *      cmp-version="2.x"
 *      primkey-field="aID"
 *      schema="EntityA"
 * type="CMP"   
 * view-type="local"
 *
 * @weblogic.table-map verify-columns="Modified"
 * @weblogic.automatic-key-generation generator-type="SQL_SERVER"
 *
 */

abstract public class EntityABean extends EntityAbstract {
        /**
 * @ejb.persistent-field
 * @ejb.interface-method
 * @ejb.pk-field
 * @weblogic:dbms-column a_id
 * @ejb.persistence column-name="a_id"
 */
abstract public Integer getAID();

        /**
* @ejb.interface-method
*/
abstract public void setAID(Integer val);
        /** * * @ejb.interface-method * * @ejb.relation * name="A-to-B-Relationship"
* role-name="from-A-to-B" * target-role-name="from-B-to-A" * target-ejb="EntityB" * cascade-delete="false" * target-multiple="no" * * @weblogic.target-column-map * foreign-key-column="a_id" * key-column="a_id" */ public abstract java.util.Collection getEntityB();
}
-------------------------------------------------------------------------------------------------------------------------
EntityBBean.java:

/**
 * @ejb.bean name="EntityB"
 *      jndi-name="ejb/EntityB"
 *      local-jndi-name="ejb/EntityB"
 *      cmp-version="2.x"
 *      schema="EntityB"
 * type="CMP"   
 * view-type="local"
 *
 * @ejb.pk extends="java.lang.Object"
 * class="abc.xyz.MyPK"
 *
 *
 * @weblogic.data-source-name jdbc/TXTipDS
 * @weblogic.table-map verify-columns="Modified"

 * 
 */
public abstract class EntityB extends EntityAbstract {

        /**
* @throws CreateException
* @ejb.create-method
* @ejb.interface-method
*/
public abc.xyz.MyPK ejbCreate(java.lang.Integer bID, java.lang.Integer aID) throws CreateException {
setBID(bID);
setAID(aID);
return null;
}

public void ejbPostCreate(java.lang.Integer bID, java.lang.Integer aID) throws CreateException {
/** @todo Complete this method */
}

        public abstract void setBID(java.lang.Integer bID);

public abstract void setAID(java.lang.Integer aID);

        /**
 * @ejb.persistent-field
 * @ejb.interface-method
 * @ejb.pk-field
 * @weblogic:dbms-column b_id
 * @ejb.persistence column-name="b_id"
 */
public abstract java.lang.Integer getBID();

/**
 * @ejb.persistent-field
 * @ejb.interface-method
 * @ejb.pk-field
 * @weblogic:dbms-column a_id
 * @ejb.persistence column-name="a_id"
 * 
 */
public abstract java.lang.Integer getAID();

}
-------------------------------------------------------------------------------------------------------------------------
weblogic-cmp-rdbms-jar.xml:

 <weblogic-rdbms-relation>
      <relation-name>A-to-B-Relationship</relation-name>
      <weblogic-relationship-role>

         <relationship-role-name>from-B-to-A</relationship-role-name>
         <relationship-role-map>
         <column-map>
            <foreign-key-column>a_id</foreign-key-column>
            <key-column>a_id</key-column>
         </column-map>
         </relationship-role-map>
      </weblogic-relationship-role>
   </weblogic-rdbms-relation>
-------------------------------------------------------------------------------------------------------------------------

please let me know if need any more details.
thanks, much appreciated.