> [EMAIL PROTECTED] wrote:
>
>>Hi, everyone:
>>
>>How to make xdoclet to to generate Oracle auto-increment keys' tags?
>>
>>I don't know how to generate jbosscmp-jdbc.xml as following:
>>
>><enterprise-beans>
>>   ........
>>   <entity>
>>   ........
>>      <!-- define command used to generate LineItem keys -->
>>      <entity-command name="keygen">
>>           <attribute name="sequence">ITEM_SEQUENCE</attribute>
>>      </entity-command>
>>   </entity>
>></enterprise-beans>
>>
>><entity-commands>
>>   <!-- define a command that uses an Oracle sequence to generate keys
>> --> <entity-command name="keygen"
>>class="org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCOracleCreateCommand">
>>   </entity-command>
>></entity-commands>
>>
>>Can anyone help me out?
>>
>>Thanks in advance!
>>
>>Paul
>>
>>
>>
>>
>>-------------------------------------------------------
>>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>> from IBM. Find simple to follow Roadmaps, straightforward articles,
>> informative Webcasts and more! Get everything you need to get up to
>> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>> _______________________________________________
>>xdoclet-user mailing list
>>xdoclet-user@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>>
>>
> Something like this might work:
>
> *   @jboss.entity-command name="oracle-sequence"
> *   @jboss.entity-command-attribute name="sequence"  value="ORDER_SEQ" *
>  *   @jboss.unknown-pk class="java.lang.integer"
>  *                     auto-increment="true"
>  *                     column-name="oid"
>  *                     jdbc-type="integer"
>  *                     sql-type="integer"


Clarance Howatt:

Thank you very much! It works!

By the way, could you please direct me a source or tutorial how to use
these tags? /xdoclet.sourceforge has very poor description.

Thans again!

Paul




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to