Jon,

Thanks for the help.  It's taken me up until now to realise that there are
alternatives to the hi/low sequence manager.  I'm using the OJB PB too but I
hadn't spotted the nextVal sequence manager and hadn't realised what
'platform' parameter really related to in repository.xml (both down to my
not reading the documentation properly).

If you use the Firebird platform in the latest releases of OJB then you can do this:


   <class-descriptor
          class="org.visres.contact.data.Country"
          table="Countries"
   >
      <field-descriptor
         name="countryId"
         column="CountryId"
         jdbc-type="INTEGER"
         primarykey="true"
         autoincrement="true"
         sequence-name="GEN_CountryId"
      />
      <field-descriptor
         name="rowVersion"
         column="RowVersion"
         jdbc-type="INTEGER"
         locking="true"
      />
      <field-descriptor
         name="name"
         column="Name"
         jdbc-type="VARCHAR"
      />

OJB can then use the generator correctly.

Regards

Dave
--
David Warnock, Sundayta Ltd. http://www.sundayta.com
iDocSys for Document Management. VisibleResults for Fundraising.
Development and Hosting of Web Applications and Sites.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to