ODMG; SequenceManager

2006-03-09 Thread ABOU LINA
Hi,
i have DB2 database;
i want to make a sequence on primary key of each  table and not a global
sequence  for all table ???
how can i do it ??
thx


Re: ODMG; SequenceManager

2006-03-09 Thread Armin Waibel

Hi,

ABOU LINA wrote:

Hi,
i have DB2 database;
i want to make a sequence on primary key of each  table and not a global
sequence  for all table ???
how can i do it ??


I don't know which SequenceManager you use.
http://db.apache.org/ojb/docu/guides/sequencemanager.html

Most implementations use a sequence per table by default, except if 
inheritance/extents are used, in this case it's mandatory that all table 
of a object hierarchy use the same sequence name.
You can force OJB to auto-generate a sequence name or set the 
sequence-name in the field-descriptor.


regards,
Armin



thx



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