]
Steve Ebersole closed HHH-1003.
-------------------------------
Closing stale resolved issues
PostgreSQL dialect uses sequence instead of identity for
id="native"
--------------------------------------------------------------------
Key: HHH-1003
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1003
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.0.5
Environment: Hibernate 3.0.5
PostgreSQL 8.0.3
Reporter: Simone Bordet
The class org.hibernate.dialect.PostgreSQLDialect overrides (incorrectly, I think, for
PostgreSQL 8 at least) the method getNativeIdentifierGeneratorClass(), returning
SequenceGenerator.class.
Since PostgreSQL supports IdentityGenerator, via serial and bigserial data types, it
would be cool to have it supported out of the box from Hibernate.
Note that the behavior of the base class org.hibernate.dialect.Dialect is already what is
needed; that is, there is no need to override getNativeIdentifierGeneratorClass() in
PostgreSQLDialect.
I have no idea if this is done for compatibility with older PostgreSQL versions; if so,
maybe a solution like OracleDialect/Oracle9Dialect may be used.
Thanks !
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: