• Post Reply Bookmark Topic Watch Topic
  • New Topic

Specifying <auto-key-generator> in jbosscmp-jdbc.xml  RSS feed

 
Murthy Majeti
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have an application which is running on Weblogic; having an entity bean mapped to a database using the below xml:

  <weblogic-rdbms-bean>
    <ejb-name>CargoLoggingBean</ejb-name>
    <data-source-jndi-name>deliverycenter</data-source-jndi-name>

    <table-map>
     <table-name>cargologging</table-name>
     <field-map>
        <cmp-field>sequencePrimaryKey</cmp-field>
        <dbms-column>cargologging_id</dbms-column>
</field-map>
      <field-map>
        <cmp-field>type</cmp-field>
        <dbms-column>type</dbms-column>
</field-map>
<field-map>
<cmp-field>telexDate</cmp-field>
<dbms-column>telex_date</dbms-column>
</field-map>
.......
                        .......
    </table-map>
   
    <automatic-key-generation>
<generator-type>Sequence</generator-type>
<generator-name>cargologging_seq</generator-name>
<key-cache-size>1</key-cache-size>
</automatic-key-generation>
  </weblogic-rdbms-bean>
<database-type>Oracle</database-type>

-----------------------------------------------------------------------------------------------------------------------------------------------------


is there any solution for the above xml which works on <b>Jboss AS 7</b>???
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!