Hi

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz@;swisscom.com]
> Gesendet: Freitag, 15. November 2002 10:06
> An: [EMAIL PROTECTED]
> Betreff: OJB and primary key
> 
> 
> Hello,
> 
> How OJB manage the primary keys?
> I'm using a MS SQL Server 2000 database and I would set the 
> auto-increment option because I don't want to worry about the 
> primary key.
> Is this possible with OJB?

Yes!
1. You can use OJB generated  sequence numbers (see
http://jakarta.apache.org/ojb/sequencemanager.html)
2. You can write a sequenceManager that uses SQLServer generated sequence
numbers.
There are sample sequence managers for Oracle, SapDb and MySql in the
Sequence Manager Package.

cheers,
Thomas

> Thank you
> Sylvain
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ojb-user-help@;jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to