Hibernate community pages say:
Quote:
Unfortunately, the identity and sequence strategies are not the most efficient since they require at least two SQL queries by insert (one for the actual insert, another to fetch the identifier value).
It's not actually right for current stable PostgreSQL versions, because it provides it's own RETURNING extension of INSERT command (since v8.2). See
http://www.postgresql.org/docs/8.3/stat ... nsert.html
How do you think is the better way to use it? Can I manage it by extending SequenceHiLoGenerator? Is it worth it?
Thank you.