3 Replies Latest reply on Nov 3, 2009 2:23 AM by atamhank

    Reveng sequence generation options Help!!

    atamhank Newbie
      I am using the option the following code in the seam-reveng.xml, it is working fine on the ui (for inserting new records into the test_table) but the sequence (generating the primary key) is jumping by 50 every time a new session is created from the Seam generated UI. Where do I specify the allocation size for the sequence the rev eng for seam in (using Seam 2.2.0GA Postgresql 8.3 Jboss 5.1.0)


      `
      ...
      <table name="test_table" schema ="public">


      <primary-key>

         <!-- setting up a specific id generator for a table -->

        <generator class="sequence">

          <param name="table">test_table_id1_seq</param>

        </generator>

         <key-column name="id"/>

      </primary-key>

      </table>

      </hibernate-reverse-engineering>`

      Help!!
      Aaditi