Hi Duffy,

----- Original Message -----
From: "Duffy Gillman" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Saturday, April 05, 2003 1:21 AM
Subject: core OJB tables; auto-increment


> Hi,
>
>    I am trying to use OJB as part of a web-service.  The database may
be
> accessed by other software.  I need to find answers to the following
> questions:
>
> 1) How do I create the core OJB tables in my database?  In the
> documentation I am only finding the "prepare-testdb" ant target.  This
> builds a bunch of extra tables that I do not want.  Surely I can drop
the
> extra tables... but I would like to know how to just build the core
ones
> into my project (OJB_HL_SEQ, OJB_LOCKENTRY, OJB_NRM, OJB_DLIST,
etc...).

it's one point of  the todo list, to separate internal table creation.

>
> 2) Is using the OJB sequence manager the only way to get OJB to work
with
> sequences?
Think I don't understand what you mean. If you want to use the
'autoincrement'
feature you have to use one of the SequenceManager implementations. But
it's
also possible to set the PK fields before store.

> Several PK fields in my database are autoincrement.  Will the
> OJB create its OWN sequences for these (i.e. if another application
relies
> on the sequence maintained by the RDBMS itself, will it clash with the
> sequence OJB is maintaining?)?

You could set a 'sequence-name' attribute in the field-descriptor, then
the
SequenceManager use this sequence-name. If not set OJB create its own.

See http://db.apache.org/ojb/sequencemanager.html

regards,
Armin

>
> Thanks in advance,
>
> Duffy
>
> --
> =====================================
> Duffy Gillman
> POLIS Systems Programmer
>
> Learning Technology Center
> PO Box 210073, CCIT Bldg., Rm. 337
> 1077 N. Highland Ave.
> Tucson, AZ 85721-0073
>
> 520.626.0117 (voice)
> 520.626.8220 (fax)
> =====================================
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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

Reply via email to