I don't know how/what JBuilder does its magic, I use Xdoclet....  Here's what 
Xdoclet generates for me for a CMP bean with 'auto-increment' for a primary key.

In jbosscmp-jdbc.xml (for bean BaseType with primary key baseTypeKey):

  |       <entity>
  |          <ejb-name>BaseType</ejb-name>
  |          <cmp-field>
  |             <field-name>baseTypeKey</field-name>
  |             <column-name>baseTypeKey</column-name>
  |             <auto-increment/>
  |         </cmp-field>
  |         .
  |         .
  |     <unknown-pk>
  |         <unknown-pk-class>java.lang.Integer</unknown-pk-class>
  |         <column-name>baseTypeKey</column-name>
  |         <jdbc-type>INTEGER</jdbc-type>
  |         <sql-type>INTEGER</sql-type>
  |         <auto-increment/>
  |     </unknown-pk>
  |         <entity-command name="mysql-get-generated-keys" 
class="org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand">
  |         </entity-command>
  |       </entity>
  | 
Hope that helps....

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858396#3858396

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858396


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to