3 Replies Latest reply on Jul 11, 2002 1:23 AM by dsundstrom

    jaws.xml is useless in CMP 2.0

    ericmacau

      Hello,

      I put a jaws.xml in the META-INF/, but JBoss3 seems not to follow it to create the table. Would you please to tell me anything else I missed to do ??

      jaws.xml
      ========================================

      <enterprise-beans>

      <ejb-name>CounterEJB</ejb-name>
      <table-name>CounterEJB</table-name>
      <remove-table>true</remove-table>
      <cmp-field>
      <field-name>counterName</field-name>
      <column-name>name</column-name>
      <jdbc-type>VARCHAR</jdbc-type>
      <sql-type>VARCHAR(20)</sql-type>
      </cmp-field>
      <cmp-field>
      <field-name>counter</field-name>
      <column-name>counter</column-name>
      <jdbc-type>LONG</jdbc-type>
      <sql-type>BIGINT</sql-type>
      </cmp-field>


      findByCounterNameAndFlag
      counterName = {0}
      counterName DESC
      <read-ahead>true</read-ahead>


      </enterprise-beans>