db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject Re: PostgreSQL ID generation
Date Tue, 24 May 2005 06:49:24 GMT




Henning,

I have just read your archived message

http://nagoya.apache.org/eyebrowse/ReadMsg?listName=torque-dev@db.apache.org&msgNo=4107

regarding the generations of ids in postgresql.
I believe the current solution to generate an id is the standard way of
using a sequence (if I remember correctly, you implemented it :-) ):

(- start a transaction)
- get a value from the sequence
- set the primary key in the object from the sequence
- save the object
(- commit the transaction)

Is this compatible with Hibernate ?

I still have to think about the id-method parameter (and check whether it
works in head), but today is the first time I came across it.

    Thomas

--------------------------------------------------------------------

Dr. Thomas Fischer
Software-Entwicklung
Tel. +49 (0) 7531 36598-22
Fax +49 (0) 7531 36598-11
E-Mail  fischer@seitenbau.com

SEITENBAU GmbH
Robert-Gerwig-Str. 10-12
D-78467 Konstanz
http://www.seitenbau.com

Amtsgericht Konstanz HRB 1528
USt-IdNr.: DE 1905 525 50

Geschäftsführer:
Florian Leinberger | Sebastian Roller | Rainer Henze
Prokuristen:
Jan Bauer | Stefan Eichenhofer


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message