Hi all,

        I am working with cmp entity beans and everything is being placed in
the in descriptor files except for the "<cmp-field>" tags. I am new to using
xdoclet and cannot seem to locate the correct tags to place in my bean to
complete this task. I am using eclipse with a weblogic7 app server. 

Here is a copy from the top of my file

/** 
 * 
* @ejb.bean jndi-name="ejb/OrgunitTypeHomeLocal"
*           name="OrgunitType"
*                       primkey-field = "orgType"
*                       cmp-version = "2.x" 
 * @ejb.home extends = "javax.ejb.EJBLocalHome"
 * @ejb.finder signature = "com.thezenith.admin.ejb.cmp.OrgunitType
findByName(java.lang.String name)"
 *      query = "select Object(o) from OrgunitType o where o.name = ?1" 
 * 
 * @ejb.finder signature = "com.thezenith.admin.ejb.cmp.OrgunitType
findByPrimaryKey(java.math.BigDecimal orgType)" 
 * @ejb.home local-class = "com.thezenith.admin.ejb.cmp.OrgunitTypeHome"
 * @ejb.pk class = "java.math.BigDecimal"
 */

And here is what is produced in the ejb-jar.xml

     <entity >
         <description><![CDATA[]]></description>

         <ejb-name>OrgunitType</ejb-name>

         <home>com.thezenith.admin.ejb.cmp.OrgunitTypeHome</home>
         <remote>com.thezenith.admin.ejb.cmp.OrgunitType</remote>
 
<local-home>com.thezenith.admin.ejb.cmp.OrgunitTypeHome</local-home>
         <local>com.thezenith.admin.ejb.cmp.OrgunitType</local>

         <ejb-class>com.thezenith.admin.ejb.cmp.OrgunitTypeBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.math.BigDecimal</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>OrgunitType</abstract-schema-name>
         <primkey-field>orgType</primkey-field>

         <query>
            <query-method>
               <method-name>findByName</method-name>
               <method-params>
                  <method-param>java.lang.String</method-param>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[select Object(o) from OrgunitType o where
o.name = ?1]]></ejb-ql>
         </query>
          <!-- Write a file named ejb-finders-OrgunitTypeBean.xml if you
want to define extra finders. -->
      </entity>

What is need added to this is:
 <cmp-field>
                <field-name>orgType</field-name>
            </cmp-field>
            <cmp-field>
                <field-name>name</field-name>
            </cmp-field>
            <cmp-field>
                <field-name>descr</field-name>
            </cmp-field>


I have tried some of the other tag combinations just to see if I could get
anything such as @jboss.cmp-field however it still will not write to the
ejb-jar.xml file. Any help anyone could provide as to where to look etc.
would be great thanks.



Regards,
Shane
---------------------------------------------------------------------------
This email and any attachments constitute non-public information for use
only by intended recipient(s) and may contain confidential information.  If
you are not an intended recipient, please notify our Information Security
Officer immediately at (941) 906-5844 and permanently delete the original of
this email and any attachments, as well as any copies or printouts thereof.
The unauthorized use, dissemination, distribution or reproduction of this
email and any attachments is prohibited and may be unlawful.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to