Hi

I'm using Eclipse 3.0.0 / JBoss IDE & XDoclet 1.2.230 / JBoss 3.2.3

I have a problem generating indexes for CMP fields - the @jboss.persistence / dbindex parameter doesn't seem to do anything. I have some CMP persisted field source code like:

        /**
         * @return      String
         *
         * @ejb.persistence     
         *              jdbc-type = "VARCHAR"
         *      sql-type="varchar(64) unique"
         *
         * @jboss.persistence
         *              dbindex = "true"
         */
        
        public abstract String getUserName();

and this creates an entry in ejb-jar.xml like:

         <cmp-field >
            <description><![CDATA[Does.]]></description>
            <field-name>userName</field-name>
         </cmp-field>

On deployment, the table is created okay, but with no index for this field. Is a <dbindex> tag meant to be added for the <cmp-field > ?

Please help me understand this!

Thank you for your help,

        Bruno.



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to